Where is org.eclipse.core.runtime.IStatus [message #156246] |
Sun, 11 June 2006 00:15 |
Eclipse User |
|
|
|
Originally posted by: rand.nada.kth.se
The Eclipse platform API says that the class IStatus is part of the
org.eclipse.core.runtime package. However, I can't find it there and
neither, apparently, can Eclipse. The exact jar file that I have on my
system is:
C:\Program
Files\eclipse\plugins\org.eclipse.core.runtime_3.2.0.v200512 08.jar
I tried running a simple demonstration program that adds a selection
listener to a button as follows:
b.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
MessageDialog.openInformation
(shell,"SWT","Button selected.");
}
});
I ran this as an SWT Application from within Eclipse. The window with
the button show up just fine. But, when I click on the button, I get
the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/IStatus
at ShellTest$1.widgetSelected(ShellTest.java:22)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
I hope somebody can tell me what I am missing.
Thanks.
Rand
|
|
|
|
Powered by
FUDForum. Page generated in 0.11458 seconds