我試圖編譯一個開源的software。構建工作正常,並生成一個jar文件「five-server.jar」。當我嘗試從cmd運行此文件時,出現這些錯誤。NoClassDefFoundError org/eclipse/swt/SWTError
C:\Users\vickey\code\five-server\dist\main>java -jar five-server.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.devtcg.five.Main. Program will exit.
任何建議什麼是錯的?
C:\用戶\ vickey \代碼\五臺服務器\ DIST \主>的java -classpath C: \ Users \ vickey \ code \ five-server \ dist \ libs \ x86 \ -j ar five-server.jar仍然給我提供了相同的錯誤:c:\ Users \ vickey \ code \ five-server \ dist \ libs \ x86 \包含swt.jar文件,在解壓縮之後,我看到SWTError類文件存在,但由於某種原因,它沒有被拾取 – 2012-08-15 16:03:53