Decompress the archive...
- Right click on the file --> 7-zip --> Extract Files...
- You will now have a new folder with the name “apache-ant-1.7.0-bin”
- Double click on the “apache-ant-1.7.0-bin” folder to open it.
- You will see a folder named “apache-ant-1.7.0”
- Copy this inner folder to your C:\java folder
Now we need to set up the environment variables for ant:
- Right click on your “My Computer” icon and choose properties.
- Click the “Advanced Tab”
- Click the “Environment Variables” button
- Under the “System Variables” section of the window click “New”
- Enter the “Variable Name” -- ANT_HOME
- Enter the “Variable Value” -- C:\java\apache-ant-1.7.0
- Click OK.
- Under the “System Variables” find the system variable with then name “Path”
- Click “Edit”
- Add “;%ANT_HOME%\bin” to the very end of the “Variable Value” field
- Click OK.
- Click OK to close the “Environment Variables” window
- Click OK to close the “System Properties” window.
Verify that you can run ant commands...
- Click on the “Start” Button
- Click on “Run...”
- In the “Open:” box enter “cmd” and click “OK”
- A command window will open
- Type “ant -version” in the command window
- You will get a response indicating that you are running “Apache Ant version 1.7.0 compiled on December 13 2006”
Consider Apache Ant installed!
Our “java” folder now looks like this:
C: java
\--apache-ant-1.7.0
\--jdk1.6.0
\--jre1.6.0
0 comments:
Post a Comment