Skip to main content



      Home
Home » Newcomers » Newcomers » Using JFace
Using JFace [message #148924] Sun, 16 April 2006 19:03
Eclipse UserFriend
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.
Previous Topic:Text Editor
Next Topic:TableViewer setFont for columns?
Goto Forum:
  


Current Time: Sat May 31 15:34:26 EDT 2025

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

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

Back to the top