ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Where to put ant.jar?
Date Mon, 09 Dec 2002 20:07:40 GMT
Ant requires the JDK's tools.jar (1.2+) on the classpath for all tasks that
wrap JDK tools (<javac>/<javah>/etc...). ant_home\bin\ant.{bat|sh} normally
takes care of that. If you start Ant yourself, read the doc on how to start
it yourself.

Also, put JARs in jre/lib/ext is not the best way to go, unless you really
understand the way classloaders work. Definitely not recommended... --DD

-----Original Message-----
From: Peter Lee [mailto:tomcatuser@shaw.ca] 
Sent: Monday, December 09, 2002 1:39 PM
To: Ant Users List
Subject: Where to put ant.jar?

I have ant.jar in \ant_home\lib and my extension \java_home\jre\lib\ext
But I got his warning.

BUILD FAILED
file:build.xml:33: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

Where should I put ant.jar and what jar files do I need?

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message