Originally posted by: SystemAdmin
Hello
I have a problem with adding cplex.jar to my java project. I installed the new Lion OX and I used to add the cplex.jar to my java projects easily when I had snow leopard, but now when I add the jar file and run the program I get the following error:
java.lang.UnsatisfiedLinkError: no cplex124 in java.library.path
java.library.path must point to the directory containing the CPLEX shared library
try invoking java with java -Djava.library.path=...
Exception in thread "main" java.lang.UnsatisfiedLinkError: ilog.cplex.Cplex.CPXopenCPLEX([I)J
at ilog.cplex.Cplex.CPXopenCPLEX(Native Method)
at ilog.cplex.CplexI.init(CplexI.java:5722)
at ilog.cplex.CplexI.<init>(CplexI.java:611)
at ilog.cplex.IloCplex.<init>(IloCplex.java:10384)
at test.main(test.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
I even installed the cplex 12.4 and I use intelidea as an IDE for my java. Do you have any ideas?
#DecisionOptimization#MathematicalProgramming-General