症狀:
按照書上的方法開發jface要加入以下jar包:
orgeclipsejfacetext**jar
orgeclipsejface_**jar
reruntime_**jar
orgpatibility_**jar
orgeclipseosgi_**jar
mands_**jar
寫了一個helloJfacejava編譯沒什麼問題但是運行就總是報錯:
javalangNoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
Caused by: javalangClassNotFoundException: reruntimeIProgressMonitor
at URLClassLoader$run(URLClassLoaderjava:)
at javasecurityAccessControllerdoPrivileged(Native Method)
at URLClassLoaderfindClass(URLClassLoaderjava:)
at javalangClassLoaderloadClass(ClassLoaderjava:)
at sunmiscLauncher$AppClassLoaderloadClass(Launcherjava:)
at javalangClassLoaderloadClass(ClassLoaderjava:)
at javalangClassLoaderloadClassInternal(ClassLoaderjava:)
Exception in thread main
解決方法:
添加jar包:
orgmon_vjar
搞定
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28588.html