ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Tomasek" <>
Subject building ant from source and junit build error
Date Thu, 03 Jan 2008 19:38:38 GMT

i am trying to build ant from source code on a rhel4 amd 64 bit system.

i get this message:
/tmp/ant/apache-ant-1.7.0/build.xml:1105: The following error occurred 
while executing this line:
/tmp/ant/apache-ant-1.7.0/build.xml:911: We cannot build the test jar 
unless JUnit is present,
      as JUnit is needed to compile the test classes.

the apache web site provides two solutions to the problem..
1. add the junit.jar to the classpath
2. remove the dependancy from the build.xml file

the second one works, of course.

the first one doesn't...  i have done the following:
setenv  CLASSPATH /tmp/jars
setenv  CLASSPATH /tmp/jars/junit.jar

where junit.jar is 'ln -s /tmp/jars/junit-4.4-src.jar junit.jar' . 
/tmp/jars/junit-4.4-src.jar is readable by all.

i have put the  junit.jar in the following directories: 

setenv ANTHOME /tmp/ant/apache-ant-1.7.0 is set

it still fails..
does any one have any idea what little thing that i am missing?  i don't

know what the ant commands/scripts are supposed to look like.  i have 
basic java understood.  i have succesfully used netbeans to 
write/build/compile java programs.

thanks kevin

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message