1. Download the Ant package.
Official website: http://ant.apache.org download .zip (Windows) or .tar.gz (Linux) compressed package
2. Unzip to a local directory
For example D:\apache-ant-1.8.4
3. Set environment variables:
ANT_HOME D:\apache-ant-1.8.4
Add %ANT_HOME%\bin to path
4. Verify:
Open cmd and enter ant -version
输出“Apache Ant(TM) version 1.8.4 compiled on May 22 2012”
That is, the installation is successful