2

when I type Ant in command line.. I get following 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

1 Answers1

2

Your JAVA_HOME looks like it is pointing to a JRE - the tools.jar is part of the JDK not the JRE.

Change the JAVA_HOME environment variable to point to a JDK and ANT will work.

Nick Holt
  • 33,455
  • 4
  • 52
  • 58