When running ant, I get the following message:
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
I have JAVA_HOME set to C:\Program Files\Java\jdk1.7.0_02
, PATH includes C:\Program Files (x86)\Java\jdk1.7.0_02\bin
, CLASSPATH includes C:\Program Files (x86)\Java\jdk1.7.0_02
, and ANT_HOME is set to C:\ant
.
It seems that ant is ignoring all of these settings and looking for the tools.jar somewhere else. There are no environment variables which point to the jre6 path. Any ideas why?
Try to check it once more according to this tutorial: http://vietpad.sourceforge.net/javaonwindows.html
Try to reboot your system.
If nothing, try to run "cmd" and type there "java", does it print anything?