I did that successfully for Maven through NetBeans preferences setting Maven home to /opt/local/share/java/maven3
but doing the same with Ant ( /opt/local/share/java/apache-ant
) but there NetBeans reports:
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.0 config文件夹中。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.