View Single Post
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#5
Originally Posted by midday View Post
java.lang.UnsatisfiedLinkError : no swt-gtk-3555 or swt-gtk in swt.library.path? or jar file etc.
Please help.
JRE 1.6.0.10
One option is to tell java where it can find the native libraries.
You do this by setting the "-Djava.library.path" "option" as follows:
Code:
CLASSPATH=./swt.jar java -Djava.library.path=path_to_swt/ SimpleSwtSample
"path_to_swt/" is a directory in which you place the native libraries.

Another option would be to copy the native libs to /usr/lib or (better, if you want this solution) copy the libs to /opt/maemo/usr/lib and then place symlinks to /usr/lib.

If you are just playing around i think the first option (setting "-Djava.library.path") is best.

Last edited by Wonko; 2010-01-29 at 19:01.
 

The Following 2 Users Say Thank You to Wonko For This Useful Post: