| Where is org.eclipse.core.runtime.IStatus [message #156246] | 
Sat, 10 June 2006 20: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
 |  
 |  
  | 
| Re: Where is org.eclipse.core.runtime.IStatus [message #156605 is a reply to message #156246] | 
Tue, 13 June 2006 11:07   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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.
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.07017 seconds