eclipse - Exception in thread "main" java.lang.UnsatisfiedLinkError: no GurobiJni56 in java.library.path -
first of all, new java programming , please excuse me wrong utilize of terms or overseeing obvious mistakes. using os x yosemite on macbook pro, , coding java in eclipse.
i encounter exception given in title when i'm trying run program. here, gurobi solver optimization problems , downloaded http://www.gurobi.com/. weird thing programme working other day, ceased work. regular programs not utilize gurobi.*;
bundle runs fine. importing gurobi.*;
works fine in test program, exists.
googling error tells me there's wrong path finding gurobi library. has encountered same problem , familiar solution? said, new java , have no clue how set preferences right. also, gurobi faq (http://www.gurobi.com/resources/faqs) says there no need special configuration default installation of gurobi optimizer in order utilize gurobi in eclipse java project on os x.
if know how adjust these things on os x , may have used gurobi software eclipse java on os x, have been helpful!
here's whole console message encounter when running program:
exception in thread "main" java.lang.unsatisfiedlinkerror: no gurobijni56 in java.library.path @ java.lang.classloader.loadlibrary(classloader.java:1764) @ java.lang.runtime.loadlibrary0(runtime.java:823) @ java.lang.system.loadlibrary(system.java:1044) @ gurobi.gurobijni.<clinit>(gurobijni.java:193) @ gurobi.grbenv.<init>(grbenv.java:16) @ gurobi.grbenv.<init>(grbenv.java:11) @ model.main(model.java:426)
thank in advance! allow me know if info have provided not sufficient reply issue.
henrik
try add together directory contains library libgurobijni56.jnilib java.library.path property.
you can adding javavm arguments:
-djava.library.path=/path/to/libgurobijni55/
or in eclipse in question:
how set java.library.path eclipse
java eclipse osx unsatisfiedlinkerror gurobi
No comments:
Post a Comment