0

I could run but I couldn't debug my Java web project on NetBean IDE.

And the error:

D:\2_HOAN CHINH\1_HOC KY II\Java programming\Bai tap\MVC2_VnMart\nbproject\build-impl.xml:845: The following error occurred while executing this line:
D:\2_HOAN CHINH\1_HOC KY II\Java programming\Bai tap\MVC2_VnMart\nbproject\build-impl.xml:851: 
java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap
    at org.netbeans.api.debugger.jpda.AttachingDICookie.findAttachingConnector(AttachingDICookie.java:250)
    at org.netbeans.api.debugger.jpda.AttachingDICookie.create(AttachingDICookie.java:123)
    at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:280)
    at org.netbeans.modules.debugger.jpda.ant.JPDAConnect$1.run(JPDAConnect.java:228)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
BUILD FAILED (total time: 0 seconds)
4

2 回答 2

0

根据此消息:“org.netbeans.modules.debugger.jpda.ant.JPDAConnect$1.run(JPDAConnect.java:228)”

这是 ANT 在您的 NetBeans 下运行不顺畅的问题。

因此,您可以尝试安装另一个 NetBeans 发行版并在其上运行项目。

于 2013-04-25T14:51:43.887 回答
0
java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap

检查你的引导类。它可能在错误的文件夹中。

于 2012-10-08T05:11:37.857 回答