Newbie Question On Sample Program [message #277222] |
Tue, 07 December 2004 00:54 |
Eclipse User |
|
|
|
Originally posted by: sab.saberman.com
I have just install the IBM version of Eclipse
(IBM_Development_Package_for_Eclipse_Win32_1.1.0.zip) which includes
Eclipse 3.0.0. I created a new package called HelloWorld using the
default package. I add the swt.jar and jface.jar to the Java
properties. I then created a HelloWorld class containing (comments
removed):
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.widgets.Display;
public class HelloWorld {
public static void main(String[] args) {
ApplicationWindow w = new ApplicationWindow(null);
w.setBlockOnOpen(true);
w.open();
Display.getCurrent().dispose();
}
}
It builds fine. When I try to run it I get:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/IProgressMonitor
at HelloWorld.main(HelloWorld.java:20)
Line 20 in the original code is:
ApplicationWindow w = new ApplicationWindow(null);
I have obviously left out some important step but don't know what it
is. Any advice would be welcome.
Stu
|
|
|
Powered by
FUDForum. Page generated in 0.03466 seconds