java知识

张梦洁 发布于 2011/03/04 10:18
阅读 1K+
收藏 0

一个java工程,调试时出现以下错误:Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
 at marsping.component.Door.initComponents(Door.java:58)
 at marsping.component.Door.<init>(Door.java:20)
 at marsping.component.CallPanel.<init>(CallPanel.java:19)
 at marsping.ElevatorSimulator.createCallPanelList(ElevatorSimulator.java:46)
 at marsping.ElevatorSimulator.<init>(ElevatorSimulator.java:18)
 at marsping.ElevatorSimulator$2.run(ElevatorSimulator.java:156)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: org.netbeans.lib.awtextra.AbsoluteLayout
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 ... 14 more

 

不知道该怎么改,请高手赐教

加载中
0
27号
27号

缺包。。。。

0
张梦洁

已经导入了netbeans.jar包了。。。。

0
27号
27号

看看在导入的包里,能不能找到:org/netbeans/lib/awtextra/AbsoluteLayout 这个类。


0
张梦洁

已经调出来了,缺少java文件。。。

返回顶部
顶部