WinAnt: Unable to locate tools.jar (solved)

I thought I’d post this to save some time for people.

I was setting up WinAnt to run the build script for HTML5 Boilerplate and was thrown an error. It said ‘unable to locate tools.jar…”. I found out that I needed to point the JAVA_HOME path in windows, to the JDK I had just installed. It was pointing at JRE, which was the problem.

SOLUTION: Set JAVA_HOME to the correct path:

C:\>set JAVA_HOME=C:\Program Files\Java\{JDE folder name}

Problem solved.

 

http://forums.devshed.com/showpost.php?p=2472542&postcount=9
http://stackoverflow.com/questions/7697044/ant-and-eclipse