Reputation: 1
For long time I'm trying to integrate sencha touch 2.1 and phonegap with no success. Few days ago I found "Sencha Cordova Builder - Automated Builds for PhoneGap Projects". I did all the instructions to integrate sencha touch with phonegap, installed JDK, android SDK, ant and adb. The problem is, when I try to build package, I get the following error:
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
C:\wamp\www\testbuilder\build.xml:9: Execute failed: java.io.IOException: Cannot run program "ant": CreateProcess error=2, The system cannot find the file specified
But ant is installed, when I type ant
on the console I get the following message:
build file :build.xml does not exist
build failed
Please help me to fix this problem.
Thank you all
Upvotes: 0
Views: 628
Reputation: 985
What happens if you type ant
in the Windows command line? To me it sounds like ANT's path is not set into Windows environmental PATH.
Check the following guide, especially section 3B at the bottom: http://docs.phonegap.com/en/2.4.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
Quote:
Finally, you may need to include %ANT_HOME%\bin to your PATH as well. To check to see if this is required, run a command prompt and type ant. If the program can not be found add %ANT_HOME%\bin to the PATH. You may need to specify the full path instead of using the %ANT_HOME% environment variable.
EDIT: The message you actually get is correct, see my comment below for rectification.
Upvotes: 1