ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Spence <>
Subject Re: Question with error: Unable to locate tools.jar
Date Thu, 30 Dec 2010 18:23:57 GMT
On 12/30/2010 12:45 PM, Michael Ludwig wrote:
> Jeff Spence schrieb am 30.12.2010 um 12:31 (-0500):
>>   "ant compile" and  I get the error:
>>    Unable to locate tools.jar. Expected to find it in C:\Program
>> Files\Java\jre6\lib\tools.jar
>>    Buildfile: build.xml does not exist!
>>    Build failed
> That's not a JDK, just the JRE: it has no developer tools.
>> I set my system path to C:\Program Files (x86)\Java\jdk1.6.0_21\lib;
>> to see if this would help but it didn't.
> So you have a JDK installed. But the lib/ directory is not the one to
> add to your path. Use the bin/ directory if you want to do that.
>> Do I need to download a different version of the jdk that will
>> install in the Program Files dir for win64bit for example?
> You need a JDK that works for your platform.
>> Or, is there a place to change where the system looks for tools.jar.
>> I am using Windows ver 6.1.7600
> At the command prompt, enter:
>    set java
> Is JAVA_HOME set? If not, set it in your desktop using sysdm.cpl (enter
> that in the little window that opens on hitting Windows-R), and be sure
> to set it to:
>    C:\Program Files (x86)\Java\jdk1.6.0_21
> Then, try
Thanks, I got rid of the Java part, but now it seems like ant can't find 
my build.xml file.
error: Buildfile: build.xml does not exist!
Build failed

Also, being new to this list. Should I respond as I did here, directly 
back to you, or is there
a different way. I noticed that my OP is the only one on the archive.


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

View raw message