Ant Installation in windows

ANT Download:
Download Ant from http://ant.apache.org/bindownload.cgi
Click zip archive: apache-ant-1.9.4-bin.zip link
Extract or Unzip the file
Click INSTALL

Setting JDK and Ant path in Command prompt :
set java_home=C:\Program Files\Java\jdk1.7.0_45
set ant_home=C:\ant\apache-ant-1.9.2-bin\apache-ant-1.9.2
set path=%path%;%java_home%\bin;%ant_home%\bin;
Type ant in command prompt.
(Or )
Setting JDK and Ant path in Environment Variables:

1. Right click Computer properties
2. Click Advance system settings

3. Click New under System Variable
4. Enter JAVA_HOME in variable name
5. Enter C:\Program Files\Java\jdk1.7.0_45 in variable value (JDK path)
6. Click OK

7.Click New under System Variable
8.Enter ANT_HOME in variable name
9.Enter C:\ant\apache-ant-1.9.2-bin\apache-ant-1.9.2 in variable value (Ant path)
10.Click OK

11.Select Path
12.Edit Path
13. Enter ; in variable value
14.Enter %path%;%java_home%\bin;%ant_home%\bin;
15.Click OK

16.Enter ant -version in command prompt and click enter
17.Enter ant and click enter

No comments:

Post a Comment

Note: only a member of this blog may post a comment.