Installing Ant under Windows

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.