[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Problem running "Hello World" with SWT (as in Cheat Sheet)
|
Hello,
I am programming since 1986 but I just startet with Java and Eclipse.
The Tutorial seemed to be the right first step.
Nearly everything worked (I figured out how to include Firefox to see the
help :-) but running the SWT-version of "Hello World" gives this:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/internal/gtk/OS
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:118)
at HelloSWT.main(HelloSWT.java:15)
I read all messages in this group (that took approx. 1 hour), but nothing
ther helped. This is normal ;-)
I got Linux (Suse), Eclipse 3.0.2 and the VM-Argument
"-Djava.library.path=${system:ECLIPSE_HOME}/plugins/org.eclipse.swt.${system:WS
}_3.0.2/os/${system:OS}/${system:ARCH}"
and the compile seems to work (imports OK). But it does not run.
This might be a silly error, but I can't figure it out.
Please help.
TIA
Michael