How to install Apache Ant on Windows
To install Apache Ant on Windows, you just need to download the Ant’s zip file, and Unzip it, and configure the ANT_HOME Windows environment variables.
Tools Used :
- JDK 1.7
- Apache Ant 1.9.4
- Windows 8.1
1. JAVA_HOME
Make sure JDK is installed, and JAVA_HOME is configured as Windows environment variable.

2. Download Apache Ant
Visit Apache Ant official website, download the Ant binary zip file, for example : apache-ant-1.9.4-bin.zip, unzip it to the folder you want to store Apache Ant.

Assume you unzip to this folder – C:\apache-ant-1.9.4

3. Add ANT_HOME
Add ANT_HOME as the Windows environment variable, and point it to your Ant folder.

4. Update PATH
Update PATH variable, append %ANT_HOME%\bin at the end, so that you can run the Ant’s command everywhere.

5. Verification
C:\Users\mkyong>ant -v Apache Ant(TM) version 1.9.4 compiled on April 29 2014 Trying the default build file: build.xml Buildfile: build.xml does not exist! Build failed
If you see a similar message above, means the Apache Ant is installed successfully on Windows.
References
From:一号门
COMMENTS