1, download, to the Ant official website http://ant.apache.org/ Download the latest version, extract to the C:\ant directory
2. Configure environment variables: My Computer----Properties----advanced-----Environment variables, add the following
Ant_home:c:\ant
JAVA_HOME:C:\JDK (The JDK is not the JRE and will not be able to find Tools.jar errors)
Path:%ant_home%\bin(for ease of operation in a DOS environment)
Note that a key-value pair appears, not including the ":"
3. To see if the installation was successful: Enter the command in the DOS window ant, if the result appears
Buildfile:build.xml does not exist!
Build failed
Description ant installation is successful! Because ant runs the Build.xml file by default, this file needs to be created by us.
Part of it is referenced below, but some of the key points he didn't specify
Http://www.cnitblog.com/intrl/archive/2009/04/11/56254.html