大家好我收到以下錯誤,當我試圖運行一個開源項目,任何想法,以避免這些錯誤,Eclipse的Java項目不能與一些奇怪的錯誤運行
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems:
The import net cannot be resolved
The import net cannot be resolved
The import net cannot be resolved
PacketSource cannot be resolved to a type
PacketSource cannot be resolved to a type
BuildSource cannot be resolved
PacketSource cannot be resolved to a type
PacketSource cannot be resolved to a type
PrintStreamMessenger cannot be resolved to a variable
PacketSource cannot be resolved to a type
PacketSource cannot be resolved to a type
PacketSource cannot be resolved to a type
PrintStreamMessenger cannot be resolved to a variable
PacketSource cannot be resolved to a type
at Classes.snifferImpl.<init>(snifferImpl.java:32)
at Classes.Zmonitor$1$1.run(Zmonitor.java:86)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
放需要的jar在類路徑 – Sanjeev
你可以在這裏添加您的代碼?除非我們能爲您提供什麼幫助?只有日誌不能提供更多信息。看來你缺少導入jar。 –
底部面板 - > java問題。 – rpax