On 9 Dec 2002 at 14:07, Dominique Devienne wrote: > 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. >
I already have my java_home set up properly. > 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 > I removed ant.jar from /lib/ext and now it works, but why is that the case. Thanks > -----Original Message----- > From: Peter Lee [mailto:[EMAIL PROTECTED]] > 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:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>