Closed GoogleCodeExporter closed 9 years ago
i checked. i do have C:\Program Files\Java\jre1.5.0_11\lib but no tools.jar
file
Original comment by henkem...@gmail.com
on 5 Jul 2007 at 7:07
I figured out I need the jdk and installed it but when I try ant -version. I
still
get the no tools.jar file because it is trying to go to C:\Program
Files\Java\jre1..... instead of C:\Program Files\Java\jdk1.....
Original comment by henkem...@gmail.com
on 6 Jul 2007 at 1:31
WinAnt v2 and above now allow you to specify the location of your JDK, and set
your
JAVA_HOME environment variable appropriately which fixes this problem.
Thanks for using WinAnt!
Original comment by masonsi...@gmail.com
on 21 Jul 2007 at 9:10
I have a similar problem.
Running ant, I get the same 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 figured of course that I had entered the wrong path when installing (JRE
instead of JDK, but checking in the System control panel, my environment
variables are as follows:
JAVA_HOME C:\Program Files\Java\jdk1.6.0_21
PATH C:\Program Files\Java\jdk1.6.0_21;C:\Program Files\WinAnt\bin
So I really can't figure out what is wrong.
Any ideas?
Thanks,
Ken
Running Win2000 SP3
Original comment by brown.k...@gmail.com
on 27 Aug 2010 at 5:11
Is there a global environment variable (Windows might call it "system-wide"--I
can't remember) that's over-riding that one, perhaps? That's all I can think of.
Original comment by masonsi...@gmail.com
on 29 Sep 2010 at 1:35
copy tools.jar from jdk/lib folder to jre***/lib folder
its working ;-)
Original comment by bharadwa...@gmail.com
on 28 Feb 2014 at 10:41
Original issue reported on code.google.com by
henkem...@gmail.com
on 5 Jul 2007 at 7:04