Try SWT on eclipse
I tried to run my first SWT program on linux today.
The file can successfully pass compilation after I refered the classpath in the command line:
javac -classpath /usr/share/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.1.1.jar SWTHello.java
However, errors still occur when I try to run it using,
java SWTHello
I finally got it work by,
java -Djava.library.path=/</usr/share/eclipse/configuration/org.eclipse.osgi/bundles/33/1/.cp/> SWTHello
Note, if you put the -Djava... into the eclipse argument window, it should be,
-Djava.library.path=/usr/share/eclipse/configuration/org.eclipse.osgi/bundles/33/1/.cp