Installing ANT for Windows 7


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:pathGive the Value D:\Program Files\Java\jdk1.6.0_03\bin;%ANT_HOME%\binClick OK

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

No comments :

Post a Comment