讲SWT&JFace的书上都提到了要引用到org.eclipse.swt.win32_version/ws/win32/swt.jar和org.eclipse.jface_version/jface.jar,但是如果你extend了org.eclipse.jface.window.ApplicationWindow,那么你在运行的时候很可能会得到这样一个错误:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor at com.tyraeltong.swt.MyApplication.main(MyApplication.java:30)
其实想要让你的代码运行起来,还需要引用下面这两个库:
org.eclipse.ui.workbench_/workbench.jar 和 org.eclipse.core.runtime_/runtime.jar |