Eclipse3.2 (Ubuntu)与Ant出错解决

阅读更多

https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/134537

 

出错原因:

Eclipse 3.2 requires ant 1.6. However, gutsy only includes ant 1.7

 

解决方法如下: 

cd /tmp
mkdir ant
cd ant
unzip /usr/share/java/ant-launcher.jar
unzip /usr/share/java/ant.jar
jar cf ../ant.jar *
sudo rm /usr/lib/eclipse/plugins/org.apache.ant_1.6.5/lib/ant-launcher.jar
sudo rm /usr/lib/eclipse/plugins/org.apache.ant_1.6.5/lib/ant.jar
sudo cp ../ant.jar /usr/lib/eclipse/plugins/org.apache.ant_1.6.5/lib/ant.jar

 

(requires unzip and a working jar executable).

你可能感兴趣的:(Ant,Ubuntu,Eclipse,Apache,Java)