Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6038

Problem with Gurobi java API: libgurobi95.so: cannot open shared object file: No such file or directory

$
0
0

I am trying to use the Gurobi java API for the first time and I am trying to run the MIP1 example here: https://www.gurobi.com/documentation/9.1/examples/mip1_java.html

I am using IntelliJ IDEA on Linux Ubuntu machine. I imported gurobi module to IntelliJ and the program build was done without errors. But when I try to run it, I get the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/ramy/gurobi950/linux64/lib/libGurobiJni95.so: libgurobi95.so: cannot open shared object file: No such file or directoryat java.lang.ClassLoader$NativeLibrary.load(Native Method)at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850)at java.lang.Runtime.loadLibrary0(Runtime.java:871)at java.lang.System.loadLibrary(System.java:1124)at gurobi.GurobiJni.<clinit>(GurobiJni.java:304)at gurobi.GRBEnv.<init>(GRBEnv.java:107)at com.example.java.Main.main(Main.java:20)Process finished with exit code 1

Viewing all articles
Browse latest Browse all 6038

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>