Oct 26, 2009

How to Solve Ant Error - Unable to locate tools.jar

The problem is: Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar

Step 1: set JAVA_HOME environment variable to your JDK install directory

Step 2: restart cmd window, the windows doesn’t recognize it before cmd window is restarted.

No comments: