Ant installation configuration problem: Ant_home is set incorrectly or ANT could not being located. Please set ant_home.

Source: Internet
Author: User

The project uses Ant

1, to the official website to download: http://ant.apache.org/bindownload.cgi

2. Unzip to install C drive

3, set Ant_home, PATh, CLASSPATH

Ant_home:.; C:\ant\apache-ant-1.9.2;

CLASSPATH:%ant_home%\lib;

PATH:%ant_home%\bin;


After the step-by-step configuration is complete, the cmd command line enters Ant-version, and the result tells me:

Ant_home is set incorrectly or ant could isn't be located. Please set ant_home.

Try a variety of ways:

1, do not use variables,%ant_home%

2. Change c:\ant in Path to C:/ant

All kinds of restart machines have not been solved.


Finally online search answers, try to change a bit, found the effect, decisive record down.

Ant_home cannot exist in the variable setting;

Originally thought that the end position plus ";", can guarantee that there is no error, the result is exactly the problem it caused


Correct configuration:

ant_home:c:\ant\apache-ant-1.9.2

CLASSPATH:%ant_home%\lib

PATH:%ant_home%\bin



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Ant installation configuration problem: Ant_home is set incorrectly or ANT could not being located. Please set ant_home.

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.