I get following error when I run ant command in cmd prompt
D:\>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
I have to develop a phonegap application for andriod device .
I have set JAVA_HOME
as C:\Program Files\Java\jdk1.6.0_41;
under system variables
and Path
as C:\Program Files\Java\jdk1.6.0_41\bin
in system variables
My ant path is C:\Program Files\apache-ant-1.9.3\bin;
in system variables Path
Values in my Path System variables are as seen below
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;"C:\Program Files\Common Files\EMC";C:\Program Files\Java\jdk1.6.0_41\bin;D:\username-Software\Android\sdk\platforms;D:\username-Software\Android\sdk\platform-tools;C:\Program Files\apache-ant-1.9.3\bin;D:\username-Software\Android\sdk\tools;