avatar
org..eclipse.swt error# Java - 爪哇娇娃
G*a
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.
[email protected]:~/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
avatar
z*g
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.
: [email protected]:~/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

avatar
G*a
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.

avatar
z*g
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

avatar
c*t
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.
: [email protected]:~/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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。