Unix 如何设置NetBeans以使用自己的ant安装?
通过NetBeans首选项将Maven home设置为Unix 如何设置NetBeans以使用自己的ant安装?,unix,netbeans,ant,path,classnotfoundexception,Unix,Netbeans,Ant,Path,Classnotfoundexception,通过NetBeans首选项将Maven home设置为/opt/local/share/java/maven3,我成功地为Maven做到了这一点,但对Ant也做了同样的操作(/opt/local/share/java/apache Ant),但NetBeans报告: ERROR - Ant is misconfigured and cannot be run. java.lang.ClassNotFoundException: org.apache.tools.ant.module.bridge
/opt/local/share/java/maven3
,我成功地为Maven做到了这一点,但对Ant也做了同样的操作(/opt/local/share/java/apache Ant
),但NetBeans报告:
ERROR - Ant is misconfigured and cannot be run.
java.lang.ClassNotFoundException: org.apache.tools.ant.module.bridge.impl.BridgeImpl
$ ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
$ /Applications/NetBeans/NetBeans\ 7.0.app/Contents/Resources/NetBeans/java/ant/bin/ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
快速修复:将粘贴~/.netbeans/7.0rc2/config/Preferences/org/apache复制到相应的7.0config文件夹中