由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - org..eclipse.swt error
相关主题
UnsatisfiedLinkError有人用eclipse吗?
Simple Question About EclipseRe: 怎样不用main(String args[])输出"hello worl
java在美国到底怎样?请问如何在jbuider里面安装poi?
structure in Java??如何把函数体放入到try ... catch ... 中
关于J2EE vs. .NET再问一个今天的面试题
迷惑了很久,java 和 c++ 到底谁快?怎么样的面试问题算刁钻?
swing 在 mac intel 下的bug怎么修正?jar 的问题, 路径有问题? 大家帮忙看看是啥毛病?
问一下swing的前途为何运行JAVA出现这个错误?
相关话题的讨论汇总
话题: swt话题: gtk话题: 3139话题: home话题: jing
进入Java版参与讨论
1 (共1页)
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

1 (共1页)
进入Java版参与讨论
相关主题
为何运行JAVA出现这个错误?关于J2EE vs. .NET
[提问] The JVM could not be started迷惑了很久,java 和 c++ 到底谁快?
Help!!! set LD_LIBRARY_PATH in Eclipseswing 在 mac intel 下的bug怎么修正?
mac不需要下载安装JDK,那还需要建立新的executable path么?问一下swing的前途
UnsatisfiedLinkError有人用eclipse吗?
Simple Question About EclipseRe: 怎样不用main(String args[])输出"hello worl
java在美国到底怎样?请问如何在jbuider里面安装poi?
structure in Java??如何把函数体放入到try ... catch ... 中
相关话题的讨论汇总
话题: swt话题: gtk话题: 3139话题: home话题: jing