在 .bashrc 中写道:
PYTHONPATH="${PYTHONPATH}:$Home/local/lib/python2.7/site-packages/"
export PYTHONPATH
LD_LIBRARY_PATH="$Home/local/lib/"
export LD_LIBRARY_PATH
CLASSPATH="/home/stud/qe09kyvu/local/lib/liblpsolve55j.so"
export CLASSPATH
当我尝试运行此命令时:
java -cp .:../lib/lpsolve55j.jar -Djava.library.path=../liblpsolve55j.so Demo
我收到以下错误:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lpsolve55j in java.library.path
但我不明白这个错误,因为..
有liblpsolve55j.so