Under Windows Ant Environment Setup

Source: Internet
Author: User

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

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.