Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/inter
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/inter [message #438919] Sat, 03 July 2004 17:45 Go to next message
Jean is currently offline JeanFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I wrote the fillowing simple program and when I run it i have a message :
"Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/
internal/gtk/OS
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:4 82)
at org.eclipse.swt.widgets.Display.create(Display.java:469)
at org.eclipse.swt.graphics.Device.<init>(Device.java:111)
at org.eclipse.swt.widgets.Display.<init>(Display.java:303)
at org.eclipse.swt.widgets.Display.<init>(Display.java:299)
at imagep.main(imagep.java:20):
"

So, please tell me what to do to solve the problem.

import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
public class imagep {

public static void main(String args[]){

Display display=new Display();
Shell shell=new Shell(display);
shell.pack();
shell.open();
while(!display.isDisposed()){

if (display.readAndDispatch()){

display.sleep();
}
display.dispose();

}
}

}
Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/inter [message #439226 is a reply to message #438919] Wed, 07 July 2004 17:27 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#missingjar

"Maurice" <jrnicl2@alltel.net> wrote in message
news:cc6rbd$nkg$1@eclipse.org...
> Hi,
>
> I wrote the fillowing simple program and when I run it i have a message :
> "Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/swt/
> internal/gtk/OS
> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:4 82)
> at org.eclipse.swt.widgets.Display.create(Display.java:469)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:111)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:303)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:299)
> at imagep.main(imagep.java:20):
> "
>
> So, please tell me what to do to solve the problem.
>
> import org.eclipse.swt.widgets.*;
> import org.eclipse.swt.layout.*;
> public class imagep {
>
> public static void main(String args[]){
>
> Display display=new Display();
> Shell shell=new Shell(display);
> shell.pack();
> shell.open();
> while(!display.isDisposed()){
>
> if (display.readAndDispatch()){
>
> display.sleep();
> }
> display.dispose();
>
> }
> }
>
> }
>
>
Previous Topic:Can TableTreeViewer show checkbox not at all items?
Next Topic:JFace and composite Layout problem
Goto Forum:
  


Current Time: Thu Mar 28 09:54:12 GMT 2024

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

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

Back to the top