no GurobiJni91 in java.library.path
AnsweredI encountered the following error when running the example in the package
javac -d . -classpath ../../lib/gurobi.jar:. ../java/Mip1.java
java -classpath ../../lib/gurobi.jar:.: Mip1
Exception in thread "main" java.lang.UnsatisfiedLinkError: no GurobiJni91 in java.library.path: [/usr/java/packages/lib, /usr/lib/x86_64-linux-gnu/jni, /lib/x86_64-linux-gnu, /usr/lib/x86_64-linux-gnu, /usr/lib/jni, /lib, /usr/lib]
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2670)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
at java.base/java.lang.System.loadLibrary(System.java:1873)
at gurobi.GurobiJni.<clinit>(GurobiJni.java:297)
at gurobi.GRBEnv.<init>(GRBEnv.java:106)
at Mip1.main(Mip1.java:18)
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi,
Could you try setting the \(\texttt{LD_LIBRARY_PATH}\) environment variable as described in the installation guide?
Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments