How to install Ant on Windows System

How to install Ant on windows System

1. Download ANT http://ant.apache.org/
2. Unzip it and rename it to ant

3. Set environmental variables JAVA_HOME to your Java environment, ANT_HOME to the directory you uncompressed, to do it on command prompt type this (Assume Ant is installed in E:\ant\.)

set ANT_HOME=E:\ant
set JAVA_HOME=D:\Program Files\Java\jdk1.6.0_03
set PATH=%PATH%;%ANT_HOME%\bin


In windows 7 you can go to Control Panel\All Control Panel Items\System or right click on Computer and then to “Advance system setting”


-Choose Advanced Tab
-Press Environtmen Variables Button
-In the System Variables, click New Button 


Give the Variable Name:ANT_HOME
Give the Value: E:\ant
Click OK

Then,we’ll add new ANT_HOME path,
And Click again on New Button if you do not have ‘path’ Variable in there, if so select it and edit as

Give the Variable Name:path
Give the Value D:\Program Files\Java\jdk1.6.0_03\bin;%ANT_HOME%\bin
Click OK

4. Check wheter ANT works correctly or not.
In the command prompt, type:
ant -version

I got Apache Ant version 1.9.2 compiled on October 17 2013
You may be get different version based on the version you have downloaded from the apache. In my case it will be 1.9.2 .

posted under |

0 comments:

Post a Comment

Please provide your valuable comment.

Newer Post Older Post Home

Followers

Powered by Blogger.

Populares

Custom Search