G*********a 发帖数: 1080 | 1 hi cows, i've set up SWT_HOME, but i kept get this error, saying no swt-pi-
gtk-3139. i can see it is in the directory. why? Thanks a lot.
jing@jing-desktop:~/workspace/Value/bin$ Exception in thread "main" java.
lang.UnsatisfiedLinkError: no swt-pi-gtk-3139 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at org.eclipse.swt.internal | z****g 发帖数: 2497 | 2 I think you need to put swt-pi-gtk-3139 library ( a .so file?) in the LOAD_L
IBRARY_PATH.
【在 G*********a 的大作中提到】 : hi cows, i've set up SWT_HOME, but i kept get this error, saying no swt-pi- : gtk-3139. i can see it is in the directory. why? Thanks a lot. : jing@jing-desktop:~/workspace/Value/bin$ Exception in thread "main" java. : lang.UnsatisfiedLinkError: no swt-pi-gtk-3139 in java.library.path : at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) : at java.lang.Runtime.loadLibrary0(Runtime.java:822) : at java.lang.System.loadLibrary(System.java:992) : at org.eclipse.swt.internal
| G*********a 发帖数: 1080 | 3 thanks! but it is there already, with swt.jar.
yes, it is .so file.
_L
【在 z****g 的大作中提到】 : I think you need to put swt-pi-gtk-3139 library ( a .so file?) in the LOAD_L : IBRARY_PATH.
| z****g 发帖数: 2497 | 4 LOAD_LIBRARY_PATH isnot SWT_HOME
you need something like
LD_LIBRARY_PATH=$SWT_HOME/:$LD_LIBRARY_PATH
【在 G*********a 的大作中提到】 : thanks! but it is there already, with swt.jar. : yes, it is .so file. : : _L
| c*****t 发帖数: 1879 | 5 What you need to do is to add the following to the JVM start param:
java -Djava.library.path="swt-gtk-directory" -cp yourApp.Main
【在 G*********a 的大作中提到】 : hi cows, i've set up SWT_HOME, but i kept get this error, saying no swt-pi- : gtk-3139. i can see it is in the directory. why? Thanks a lot. : jing@jing-desktop:~/workspace/Value/bin$ Exception in thread "main" java. : lang.UnsatisfiedLinkError: no swt-pi-gtk-3139 in java.library.path : at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) : at java.lang.Runtime.loadLibrary0(Runtime.java:822) : at java.lang.System.loadLibrary(System.java:992) : at org.eclipse.swt.internal
|
|