martijnn2008 martijnn2008 - 2 months ago 27
Java Question

Gurobi UnsatisfiedLinkError

I am trying to install Gurobi under Academic Licence on Ubuntu 14.04. I have read the following post about the

: But that didnt help me. I have extracted the zip in my
folder. I have placed the licence file in

I am trying to run the
example in Eclipse.

I have as Java VM argument:
. I have as program argument:
. The environment variable
is set on

And I get the following stacktrace:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/gurobi600/linux64/lib/ cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(
at java.lang.ClassLoader.loadLibrary0(
at java.lang.ClassLoader.loadLibrary(
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at gurobi.GurobiJni.<clinit>(
at gurobi.GRBEnv.<init>(
at gurobi.GRBEnv.<init>(
at main.Callback.main(

Any ideas?


It's all working properly now. I have removed the VM arguments in the run configurations menu, so that's all empty in Eclipse. I have changed the environment variables in Eclipse, they are now set to:

GUROBI_HOME      = /opt/gurobi600/linux64/
GRB_LICENCE_FILE = /opt/gurobi600/linux64/gurobi.lic
LD_LIBRARY_PATH  = /opt/gurobi600/linux64/lib/
PATH             = /opt/gurobi600/linux64/bin/