Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Where is org.eclipse.core.runtime.IStatus
Where is org.eclipse.core.runtime.IStatus [message #156246] Sun, 11 June 2006 00:15 Go to next message
Eclipse UserFriend
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
Re: Where is org.eclipse.core.runtime.IStatus [message #156605 is a reply to message #156246] Tue, 13 June 2006 15:07 Go to previous message
Bill Winspur is currently offline Bill WinspurFriend
Messages: 180
Registered: July 2009
Senior Member
Rand Waltzman wrote:
> 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
When your app executes it is outside eclipse, so you must ensure that
all required plugins are deployed with it. Just a suggestion - try
putting an import of IStatus into your app to see what missing plugin is
required at runtime. It should show up in the dependencies tab.
Bill.
Previous Topic:Help Contents
Next Topic:BundleData
Goto Forum:
  


Current Time: Thu Nov 14 09:06:42 GMT 2024

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

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

Back to the top