Using JFace [message #148924] |
Sun, 16 April 2006 23:03 |
Eclipse User |
|
|
|
Originally posted by: onionblossom.gmail.com
Hi I am trying to get this to work:
----
import org.eclipse.jface.window.*;
import org.eclipse.swt.widgets.*;
public class Hello extends ApplicationWindow
{
public Hello()
{
super(null);
}
public static void main(String[] args)
{
Hello w = new Hello();
w.setBlockOnOpen(true);
w.open();
Display.getCurrent().dispose();
}
}
----
but I always get this exception :
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
Exception in thread "main"
----
I have included the path to the eclipse plugin directory and also included
jface.jar
runtime.jar
swt.jar
workbench.jar
from the eclipse\plugin directory. Plain swt apps work perfectly, but this
simple jface program doesn't.
I am using eclipse 3.2 M6 on windows xp professional. What am I doing
wrong?
Thank you for your help.
|
|
|
Powered by
FUDForum. Page generated in 0.08717 seconds