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
|
|