早上好,我正在使用带有 eclispe 和 Java 的 lpsolve。
我可以正确导入程序,但是在运行它时出现异常:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/lp_solve/liblpsolve55j.so: liblpsolve55.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.loadLibrary0(Runtime.java:844)
at java.lang.System.loadLibrary(System.java:1051)
at lpsolve.LpSolve.<clinit>(LpSolve.java:275)
at scheduler.Main.main(Main.java:353)
或者,我已经编辑了本机库路径:usr/lib/lp_solve.
谁能帮我 ?谢谢 !