由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - UnsatisfiedLinkError
相关主题
org..eclipse.swt errorQuestion on classpath
为何运行JAVA出现这个错误?where to execute java program?
Exception in thread "main" java.lang.NoClassDefFoundError菜鸟恳请牛人们指点
Help!!! set LD_LIBRARY_PATH in Eclipseeclipse下生成的jar file不包含library
Simple Question About Eclipseservlet读取directory的基本问题
[合集] How to remove absolute path in eclipse project fileEclipse 编译求助
how to set CLASSPATH under Linux??新手求助,急急急!!!
java dumb question如何从java中调用Matlab
相关话题的讨论汇总
话题: lib话题: thread话题: exception话题: jar
进入Java版参与讨论
1 (共1页)
y****e
发帖数: 1012
1
在一个机器上写一个jar,用eclipse配置了native library~但是在另外一个机器上却跑
不了……
/usr/lib/jvm/jdk1.7.0/bin/java -Djava.library.path=./lib -Dfile.encoding=UT
F-8 -classpath ./target/classes:./lib/gdata-core-1.0.jar:./lib/gdata-client-
1.0.jar:./lib/gdata-maps-2.0.jar:./lib/gdata-media-1.0.jar:./lib/lpsolve55j.
jar:./target/DCPlacement-jar-with-dependencies.jar:/usr/share/java/log4j-1.2
.jar DatacenterLocator -g 10,10 -l 4000 -s heuristic
报错:
Exception in thread "Thread-3" Exception in thread "Thread-0" Exception in t
hread "Thread-2" java.lang.UnsatisfiedLinkError: /tmp/rep/dcp/DCPlacementCor
e/lib/liblpsolve55j.so: liblpsolve55.so: cannot open shared object file: No
such file or directory我把所以的jar,so都放到./lib下面了,也就是/tmp/rep/dcp/
DCPlacementCore/lib/
为啥在另外的机器上面跑不了呢?
问下大家
谢谢!
r*****l
发帖数: 2859
2
If using Dindows, put the .dll file in PATH.
If using Linux, set LD_LIBRARY_PATH to find .so.

却跑
UT
client-
lpsolve55j.
.2
t
DCPlacementCor

【在 y****e 的大作中提到】
: 在一个机器上写一个jar,用eclipse配置了native library~但是在另外一个机器上却跑
: 不了……
: /usr/lib/jvm/jdk1.7.0/bin/java -Djava.library.path=./lib -Dfile.encoding=UT
: F-8 -classpath ./target/classes:./lib/gdata-core-1.0.jar:./lib/gdata-client-
: 1.0.jar:./lib/gdata-maps-2.0.jar:./lib/gdata-media-1.0.jar:./lib/lpsolve55j.
: jar:./target/DCPlacement-jar-with-dependencies.jar:/usr/share/java/log4j-1.2
: .jar DatacenterLocator -g 10,10 -l 4000 -s heuristic
: 报错:
: Exception in thread "Thread-3" Exception in thread "Thread-0" Exception in t
: hread "Thread-2" java.lang.UnsatisfiedLinkError: /tmp/rep/dcp/DCPlacementCor

y****e
发帖数: 1012
3
thanks, I solved that one/

【在 r*****l 的大作中提到】
: If using Dindows, put the .dll file in PATH.
: If using Linux, set LD_LIBRARY_PATH to find .so.
:
: 却跑
: UT
: client-
: lpsolve55j.
: .2
: t
: DCPlacementCor

1 (共1页)
进入Java版参与讨论
相关主题
如何从java中调用MatlabSimple Question About Eclipse
another question driving me crazy...[合集] How to remove absolute path in eclipse project file
问个java on linux的奇怪问题how to set CLASSPATH under Linux??
weird class definitionjava dumb question
org..eclipse.swt errorQuestion on classpath
为何运行JAVA出现这个错误?where to execute java program?
Exception in thread "main" java.lang.NoClassDefFoundError菜鸟恳请牛人们指点
Help!!! set LD_LIBRARY_PATH in Eclipseeclipse下生成的jar file不包含library
相关话题的讨论汇总
话题: lib话题: thread话题: exception话题: jar