Sunday, November 14, 2010

How to install ANT on windows

Go to Start-->Run and type "cmd"

Command prompt window will open, then type "ant"

If you see " ant is not recognized as an internal or external command" message, then you need to install ant.

Download ant binary file from http://ant.apache.org/bindownload.cgi.
unzip the downloaded file and copy into the C:\Program Files\ANT..
Copy the bin directory path.
We need to add ant bin directory path to system environment variables path.

right click on My computer and select properties-->Advanced-->environment variables-->System variable--> select path and click on edit.
Add ANT bin path to as shown in below image.
Click "Ok".
Now, Restart the machine and open command prompt and enter "ant -version".
You should see similar message as below.

No comments:

Post a Comment