Reputation: 33
I am developing Android Application using jQuery Mobile and Phonegap and as I mention in the question I need to open Android project through Command Line, I set 3 path in my Environmental Variable.
I download the latest version of Phonegap, then in command line i give path to phonegap folder.
cd C:\Users\UserName\Desktop\phonegap\phonegap-2.9.1\phonegap-2.9.1\lib\android\bin
It's working good then I type
create (path of folder to create App)com.example.project DemoApp
output is:
Cannot not locate ant.bat using the PATH variable.
Upvotes: 0
Views: 78
Reputation: 3330
You need to add the ANT_HOME to the PATH variable.
Open the console window and type the following
set PATH=%PATH%;%ANT_HOME%
or You could do it by changing the PATH environment variable in the window below.
MyComputer->Properties->Advanced->Env Variables->Path.
EDIT1: Check the following links for installing cordova/phonegap.
http://thejackalofjavascript.com/phonegap-3-cli-setup-mac-windows/
http://coenraets.org/blog/cordova-phonegap-3-tutorial/
http://teusink.blogspot.in/2013/07/guide-phonegap-3-android-windows.html
Upvotes: 0