我试图设置ANT,但出于某种原因,即使在设置ANT_HOME和路径后,我仍然会遇到以下错误。请帮助找到我出错的地方
ANT_HOME设置不正确或无法找到。请设置ANT_HOME
这是我的环境变量:
ANT_HOME = C:\Users\HP\Downloads\apache-ant-1.9.4; JAVA_HOME = C:\Program Files\Java\jdk1.8.0_20; Path = C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Hewlett-Packard\SimplePass\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\nodejs\;C:\Program Files\Java\jdk1.8.0_20\bin;C:\Users\HP\Downloads\adt-bundle-windows-x86_64-20140702\sdk\tools;C:\Users\HP\Downloads\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;C:\Users\HP\Downloads\apache-ant-1.9.4\bin;
我在C:\ Users \ HP \ Downloads。
中有我的ant文件夹答案 0 :(得分:2)
从ANT_HOME和JAVA_HOME中删除分号。应该是这样的:
ANT_HOME = C:\Users\HP\Downloads\apache-ant-1.9.4
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_20