ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Egorov" <>
Subject ant-1.6.5; need to add tools.jar to system classpath
Date Tue, 11 Sep 2007 20:49:02 GMT
Hi Ant Users,

We are working with ant-1.6.5. As a workaround for

(the bug is marked fixed, but it re-appeared in jdk 1.6), we need to add
tools.jar to ant system classpath.

What is the recommended way of doing this?

Adding it to CLASSPATH did not help because ant scripts (ant and
ant.bat) create their own -classpath. We also tried adding it to
LOCALCLASSPATH, but ant.bat does not handle it the same way as ant
script does. So far we resolved to editing ant.bat (added
LOCALCLASSPATH, see below), but we hope that there is a better way.

Note that upgrading to ant-1.7 is not an option for us at this time.

Thank you,


Change to $ANT_HOME/bin/ant.bat in ant-1.6.5 (added LOCALCLASSPATH).

< "%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar"
"-Dant.home=%ANT_HOME%" %ANT_ARGS%
> "%_JAVACMD%" %ANT_OPTS% -classpath
%ANT_HOME%\lib\ant-launcher.jar;%LOCALCLASSPATH% "-Dant.home=%ANT_HOME%" %ANT_ARGS% -cp "%CLASSPATH%"

Notice:  This email message, together with any attachments, may contain information  of  BEA
Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,
 copyrighted  and/or legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient, and have received
this message in error, please immediately return this by email and then delete it.

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

View raw message