ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Lee <tomcatu...@shaw.ca>
Subject RE: Where to put ant.jar?
Date Wed, 11 Dec 2002 19:42:41 GMT
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 have 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
> 

This is what I found out. When I removed ant.jar from my extension, there was no problem.

Thanks.

> -----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>
> 



--
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