I installed Ant1.8 using WintAnt SetUp and in the command prompt i tried to use the ant its saying
"C:\Documents and Settings\shakti>ant
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed
C:\Documents and Settings\shakti>"
Can plea开发者_如何学运维se anybody help me out.
Do you have the JDK installed as well as the JRE? You'll need the JDK installed for the compiler, I believe.
At that point, change your JAVA_HOME environment variable to refer to the JDK directory instead of the JRE directory. You should be able to find tools.jar
in the lib
directory under JAVA_HOME.
See the Ant installation guide for more details.
EDIT: In addition to the tools.jar problem, it looks like you're trying to run ant in a directory which doesn't contain a build file. What are you trying to build?
精彩评论