ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: problem in installing ant-SOLVED; thankyou
Date Wed, 08 Feb 2006 14:12:30 GMT
For clarification:

You dont _have_ to set the path to %ANT_HOME%\bin. You could also always use the absolute
path to ant.bat :-)  But setting path is more comfortable.

You also dont have to set this, because ant.bat set´s this from its own location.
    rem %~dp0 is expanded pathname of the current script under NT
    set DEFAULT_ANT_HOME=%~dp0..

Ant is a java program so you dont need a jDk just for running Ant. But Ant is also a development
tool - some capabilities of Ant makes use of classes in tools.jar. For example the <javac>
task for compiling java sources. So without a tools.jar Ant will run as far as it could. As
long as you dont compile ....

But Ondrej pointed you to the right direction :-)


>-----Ursprüngliche Nachricht-----
>Von: Ondřej Světlík [] 
>Gesendet: Mittwoch, 8. Februar 2006 14:09
>An: Ant Users List
>Betreff: Re: problem in installing ant-SOLVED; thankyou
>> Hello
>>   thanks to Ondrej Svetlik
>>   after setting the path to ant bin i got ant working
>>   now i have another problem
>>   when i type
>>   ant -version
>>   in the command prompt
>>   the message i get is
>>   Unable to locate tools.jar. Expected to find it in C:\Program
>> Files\Java\j2re1.4
>> .2_05\lib\tools.jar
>> Apache Ant version 1.6.5 compiled on June 2 2005
>>   please tell me how to rectify this
>>   thank you.
>>   V.Sundar
>Hello again,
>I don't use windows, so it may be different, but it seems that 
>you have only jre installed instead of jdk. It seems that jre 
>doesn't containt tools.jar which is needed by ant. Try to 
>install the whole jdk and set your JAVA_HOME variable to point 
>to the jdk directory, possibly something like this:
>JAVA_HOME="C:\Program Files\Java\j2dk1.4"
>But this is really a pure guess :-).
>Good luck.
>Ondrej Svetlik
>To unsubscribe, e-mail: For 
>additional commands, e-mail:

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

View raw message