Ale46/groovejaar — Issue #10: CMD looks for tools.jar in JRE not JDK directory
Author: syncmastert
Created: 2012-02-22 21:20:23+00:00
State: open

Hi, thanks for your efforts.

Using Win7.
In cmd.exe
I wrote ant -f build.xml

Getting this error:

Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
build.xml does not exist!

tools.jar is present in C:\Program Files\Java\jdk1.7.0_03\lib

I used WinAnt and pointed it to the JDK folder when installing.
I uninstalled & reinstalled WinAnt. No change.
I tried copying tools.jar to the JRE\lib directory.

If this problem is with ant, how can I re-direct it?