"ant" is not recognized as command in Windows

Posted by user1294663 on Super User See other posts from Super User or by user1294663
Published on 2012-06-17T03:24:13Z Indexed on 2012/06/17 9:18 UTC
Read the original article Hit count: 241

Filed under:
|
|

This is my first time developing Android applications. I'm developing an Android app on Eclipse on Windows 7. I would like to run the Android app from the Windows 7 command line interface. I have my Android device connected to the PC.

The workspace directory that I use to store the Android project is

C:\Users\Guest\Desktop\Software Applications Development\Java\Android Moblie Applications Projects\Eclipse Indigo for Java EE x64-bit\project workspace

I opened the command line interface and I changed the working directory to the Android workspace directory.

cd C:\Users\Guest\Desktop\Software Applications Development\Java\Android Moblie Applications Projects\Eclipse Indigo for Java EE x64-bit\project workspace

I included Android sdk platform tools directory into the PATH environment variable.

c:\Users\admin\Android-sdks\platform-tools

Then I entered this into the Windows 7 command line interface:

ant debug

I have this error message on the cmd:

ant is not recognised as an internal or external command, operatable program or batch file.

What is the solution to this problem?

© Super User or respective owner

Related posts about windows-7

Related posts about command-line