I get following error when I run ant command in cmd prompt

Unable to locate tools.jar. Expected to find it in C:Program FilesJavajre6li
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 FilesJavajdk1.6.0_41;
under system variables

and Path as C:Program FilesJavajdk1.6.0_41bin

in system variables

My ant path is C:Program Filesapache-ant-1.9.3bin; in system variables Path

Values in my Path System variables are as seen below

%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;%SYSTEMROOT%System32WindowsPowerShellv1.0;”C:Program FilesCommon FilesEMC”;C:Program FilesJavajdk1.6.0_41bin;D:username-SoftwareAndroidsdkplatforms;D:username-SoftwareAndroidsdkplatform-tools;C:Program Filesapache-ant-1.9.3bin;D:username-SoftwareAndroidsdktools;

Read more here: Error for ant command in cmd


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: