Step by step guide to configure “Ant” on window machine.
Posted by: Prince in Solutions Add comments1. Install JDK
2. Download Ant Zip file.
3. UnZip in any folder (e.g. C:\Program Files\Ant)
4. Right click on My Computer
5. Click on Properties
6. Click on “Advanced” Tab
7. Click on “Environmental Variables”
8. Click on “New” button in “User Variables” section
9. Insert Variable name = “ANT_HOME” and Variable Value = “C:\Program Files\Ant” and Save
10. In “User Variables” section, Select “Path” from the list and click on “Edit” button.
11. And insert “;%ANT_HOME%\bin;” at last in the path and Save
12. Click on “New” button in “User Variables” section
13. Insert Variable name = ANT_OPTS and Variable Value = -Xmx1024m and Save
Note: steps 12 and 13 are Options Steps and it is used to avoid “Out of memory exception” because some tasks may require more memory.
Check Ant Installation is done properly or not?
1. Open dos/command prompt by typing “Cmd” in run text menu
2. Type “Ant –version” user will get information of ant version as below:
C:\Documents and Settings\Prince>ant -version
Apache Ant version 1.7.1 compiled on June 27 2008