日期:2014-05-20  浏览次数:20765 次

netbeans IDE 5.5 RUN問題(RUN時出錯)
RUN時出錯,無論是什麼程序
簡單的程序程序:
public   class   NewClass   {

/**   Creates   a   new   instance   of   NewClass   */
public   NewClass()   {
}
public   static   void   main(String   args[]){
System.out.println( "asdasdasdasd ");
}
}
RUN時出錯:
ERROR   -   Ant   is   misconfigured   and   cannot   be   run.
java.lang.NullPointerException
at   org.apache.tools.ant.module.bridge.AntBridge.createCustomDefs(AntBridge.java:474)
at   org.apache.tools.ant.module.bridge.AntBridge.createStuff(AntBridge.java:296)
at   org.apache.tools.ant.module.bridge.AntBridge.getStuff(AntBridge.java:248)
at   org.apache.tools.ant.module.bridge.AntBridge.getInterface(AntBridge.java:237)
at   org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
at   org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)

------解决方案--------------------
我以前用bate版本,也有这样的问题.
换了版本就OK了!