ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nate Stoddard" <n...@cynareae.com>
Subject Re: Question with error: Unable to locate tools.jar
Date Thu, 30 Dec 2010 17:35:33 GMT
You should be setting JAVA_HOME to your jdk installation directory.

> Hello,
>    I'm studying J2EE with the Java Tutorial, and have run into some
> trouble in my first attempt to compile using the following:
>   "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
>
>
> 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.
> Do I need to download a different version of the jdk that will install
> in the Program Files dir for win64bit for example?
>
> Or, is there a place to change where the system looks for tools.jar.
> I've looked in the buil.xml file to see if there was something out of
> place there, but didn't see anything that should point directly to the
> file there,
> and also did the same in the javadb-build-properties, and
> javadb-sample-properties files that were provided by the tutorial.
>
> Does anyone have any suggestions as to what I am doing wrong?
> I am using Windows ver 6.1.7600
>
> Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message