2011-05-21 34 views
0

我這樣做,成功地爲Maven的通過NetBeans首Maven的家設置爲/opt/local/share/java/maven3但這樣做有螞蟻(/opt/local/share/java/apache-ant)相同,但有NetBeans的報道:如何設置NetBeans以使用我自己的Ant安裝?

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 
+0

NB 7RC2沒有問題 – simpatico 2011-05-21 08:26:53

+0

https://netbeans.org/bugzilla/show_bug.cgi?id=198784 – simpatico 2011-05-21 16:50:39

回答

1

快速修復:複製粘貼〜/的.netbeans/7.0rc2/config/Preferences/org/apache到相應的7.0 config文件夾中。

相關問題