Hi Every One,
I am new to ant.To learn ant,i am following some online tutorials.when i tried to run ant from command prompt i got some errors.Here is my problem..
I have created a simple directory structure like
TestAnt
l
-->src-->HelloWorld.java
l
--> build.xml
When i tried to run ant from command prompt result was like this
E:\WINDOWS\java\TestAnt>ant
Unable to locate tools.jar. Expected to find it in E:\Program Files\Java\jre1.6.0_05\lib\tools.jar
Buildfile: build.xml
init:
compile:
[javac] Compiling 1 source file to E:\WINDOWS\java\TestAnt\build
BUILD FAILED
E:\WINDOWS\java\TestAnt\build.xml:20: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "E:\Program Files\Java\jre1.6.0_05"
Total time: 0 seconds
and my environment variable values are
path=E:\oraclexe\app\oracle\product\10.2.0\server\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;E:\WINDOWS\jdk6\bin;C:\apache-ant-1.7.0-bin\bin;
JAVA_HOME=E:\WINDOWS\jdk6\bin;E:WINDOWS\jdk6
ANT_HOME=C:\apache-ant-1.7.0-bin
Is there any mistake in my environment variables ?
My JAVA_HOME value is
E:\WINDOWS\jdk6\bin;E:WINDOWS\jdk6
But when i am running ant i got message like
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "E:\Program Files\Java\jre1.6.0_05"
Can any one please tell me what's wrong with this..
Thank q very much,
Sireesha.