首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

netbeans IDE 5.5.1 RUN問題,该怎么解决

2012-03-23 
netbeans IDE 5.5.1 RUN問題RUN時出錯,無論是什麼程序簡單的程序程序:publicclassNewClass{/**Createsanew

netbeans IDE 5.5.1 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)


而且我的系統不隻一次出現這個問題
(重裝系統)

[解决办法]
没用过
[解决办法]
换个版本试试看
[解决办法]
程序没错
应该是配置上出的问题
[解决办法]
没用过netbean。。。纯帮顶。。。
[解决办法]
http://forum.java.sun.com/thread.jspa?threadID=610775&messageID=4192358

一样的问题,貌似是三方jar放置的问题

热点排行