[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: swt on linux

You are pointing at the source not the jar.
You should put the following in your classpath:

/home/novin06/eclipse/eclipse/plugins/org.eclipse.swt.gtk_2.1.0/ws/gtk

"javadummy" <imdad_md@xxxxxxxxxxx> wrote in message
news:b2e3r6$bih$1@xxxxxxxxxxxxxxxx
> Hi,
>
> I have installed M4 on suse 8.1 linux. i get a class not found error on
> executing an SWT application even though i have specified the source
> provided in the right location.
>
/home/novin06/eclipse/eclipse/plugins/org.eclipse.platform.linux.gtk.source_
2.1.0/src/org.eclipse.swt.gtk_2.1.0/ws/gtk
>
> has anybody encountered such a problem, would be delighted to have some
> feedback and suggestions.
>
> i have included the error below
>
> thanx in advance
>
> javadummy
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/swt/internal/gtk/OS
>         at org.eclipse.swt.widgets.Display.createDisplay(Display.java:435)
>         at org.eclipse.swt.widgets.Display.create(Display.java:422)
>         at org.eclipse.swt.graphics.Device.<init>(Device.java:107)
>         at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
>         at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
>         at standalone.main(standalone.java:9)