longlene / winant

Windows Installer for Apache Ant
0 stars 0 forks source link

unable to locate tools.jar... #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.ran winant.exe 
2.rebooted computer
3.opened up command prompt, typed ant

What is the expected output?  similiar to svn where is says type svn help

What do you see instead? unable to locate tools.jar expected to find it in
c:probram Files\jave\jre1.5.0_11\lib\tools.jar
Buildfile: build.xml does not exist
Build failed

Original issue reported on code.google.com by henkem...@gmail.com on 5 Jul 2007 at 7:04

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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