JFace getting started
Hi
I try to run a simple SWT/Jface example. I am running this from inside
eclipse 3.2.0 and I have included the following in my classpath:
swt.jar - Taken from swt-3.3M3-win32-win32-x86.zip
jface.jar - Taken from program files\eclipse\plugins and Renamed from
org.eclipse.jface_3.2.0.I20060605-1400.jar
Here is the class:
import org.eclipse.jface.window.*;
import org.eclipse.swt.widgets.*;
public class MyJFaceExample1 extends Window {
public MyJFaceExample1() {
// super(null); //Wont compile with null as the beginner example says
it should
super(new Shell()); //Compiles
}
public static void main(String[] args) {
MyJFaceExample1 demo = new MyJFaceExample1();
demo.setBlockOnOpen(true);
demo.open();
Display.getCurrent().dispose();
}
------------------------------------------------------------
This compiles fine but when I try to run this I get:
java.lang.NoClassDefFoundError:
org/eclipse/core/commands/common/EventManager
I then copy c:\program
files\eclipse\plugins\org.eclipse.core.commands_3.2.0.I20060605-1400.jar
and rename it to core.jar.
I then get the following error: java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/ListenerList
Then I am stuck.
Please help me with getting started with JFace.