天天看點

Ant配置 ANT_HOME is set incorrectly or ant could not be located

Ant差點找死的原因  

搭建Ant時,我弄了半天,在指令行裡還是報錯:ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.我檢查步驟:

1、jdk安裝了呀,JAVA_HOME配置了呀: JAVA_HOME:E:\Java\jdk1.5.0_06;

2、Ant解壓在E:盤了呀

3、Path裡添加到Ant的bin目錄了呀:path:E:\Ant\apache-ant-1.8.1\bin;

4、環境變量ANT_HOME也是到Ant的解壓目錄呀:ANT_HOME:E:\Ant\apache-ant-1.8.1;

我暈!!!你猜怎麼着,ANT_HOME的配置,不能加分号;我把分号去掉了,歐克!!嘿嘿……