First, install Ant
To the official homepage http://ant.apache.org Download the new version (currently Ant1.8.1) ant, get a apache-ant-1.8.1-bin.zip compression package. Unzip it to your hard drive, for example: C:\apache-ant-1.8.1.
Second, configure environment variables
Set the ANT environment variable in window:
Ant_home c:/apache-ant-1.8.1
Path c:/Apache-ant-1.8.1/bin
Classpath C:/apache-ant-1.8.1/lib
Note: "
Configure environment variables: My Computer----Properties-----Advanced----Environment Variables
such as: ant_home:c:\apache-ant-1.8.1
Path:%ant_home%\bin (for ease of operation in a DOS environment)
Experiment has always failed, no way to change the address c:/Apache-ant-1.8.1/bin, and no longer use the variable ... It worked..
】
Third, verify the Ant
To verify that ant is installed successfully, you can do the following:
Select: Start and Run->cmd, enter the following command: Ant
If the following appears, the installation is successful:
Buildfile:build.xml does not exist!
Build failed
650) this.width=650; "src=" Http://img.my.csdn.net/uploads/201211/12/1352718174_5230.png "style=" border:0px; "/>
"Description ant installation succeeded!" Because ant runs the Build.xml file by default, this file needs to be created by us. 】
View version: Ant-version
650) this.width=650; "src=" Http://img.my.csdn.net/uploads/201211/12/1352718184_3525.png "style=" border:0px; "/>
However, if the following occurs, the installation fails: (You can repeat the preceding steps until the installation is successful.) )
' Ant ' is not an internal or external command, or a program or batch file that can be run.
This article is from "Ghost" blog, please make sure to keep this source http://fangwei009.blog.51cto.com/5234706/1910384
Under Windows Ant Environment Setup