ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <>
Subject RE: Problems installing ant
Date Wed, 20 Nov 2002 10:51:51 GMT
Does your CLASSPATH environment variable end in a backslash (\) ? If so, remove it.

I had a similar problem, I "fixed" it by changing the ant.bat script to remove the quotes
around the classpath in the call to java, but I didn't understand why my fix worked (indeed
I would have expected it to break things rather than fix them). Someone (some months ago)
pointed out on this list that this is a "feature" of Java and its environment string-parsing
on Win2k.


-----Original Message-----
From: Thomas Saxtoft []
Sent: 20 November 2002 09:14
Subject: Problems installing ant


I have installed Ant on several computers without any problem. Now I
have ran into a little problem and I have been looking in all my
settings and can't find anything wrong. 
I've got a JAVA_HOME, an ANT_HOME and classpath and path set. But when I
write Ant in the command line it seems like it tries to run java.exe
instead of Ant. I get the below message: 
Usage: java [-options] class [args...]
           (to execute a class)
   or  java -jar [-options] jarfile [args...]
           (to execute a jar file)

where options include:
    -client       to select the "client" VM
    etc., etc.

If I remove the java installation, I get this message instead:
 Warning: JAVA_HOME environment variable is not set.
   If build fails because sun.* classes could not be found
   you will need to set the JAVA_HOME environment variable
   to the installation directory of java.

So it seems like it finds my ANT_HOME.

Could somebody please give me a clue to leed me back on the right

Thank you in advance.

Thomas Saxtoft

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

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

View raw message