Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Newbie Question On Sample Program
Newbie Question On Sample Program [message #277222] Tue, 07 December 2004 00:54
Eclipse UserFriend
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
Previous Topic:Default charset GBK not supported, using ISO-8859-1 instead
Next Topic:Toolbar and Text Field
Goto Forum:
  


Current Time: Tue May 13 01:11:51 EDT 2025

Powered by FUDForum. Page generated in 0.03466 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top