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.