Originally posted by: ASMKhan
Dear all,
I am using maven to build my jjava project. I am trying to give:
-Djava.library.path=/opt/ibm/ILOG/CPLEX_Studio1262/cplex/bin/x86-64_linux
as an argument in the POM file of my maven/java project. I have already added the following lines to the dependencies of my project:
<dependency>
<groupId>cplex</groupId>
<artifactId>cplex</artifactId>
<version>12.6.2</version>
</dependency>
I keep getting this error whenever the code using cplex is about to run:
java.lang.UnsatisfiedLinkError: no cplex1262 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=...
java.lang.UnsatisfiedLinkError: ilog.cplex.Cplex.CPXopenCPLEX([I)J
at ilog.cplex.Cplex.CPXopenCPLEX(Native Method)
at ilog.cplex.CplexI.init(CplexI.java:6608)
at ilog.cplex.CplexI.<init>(CplexI.java:629)
at ilog.cplex.IloCplex.<init>(IloCplex.java:10313)
at ilog.cplex.IloCplex.<init>(IloCplex.java:10328)
Can someone please help me. What code should I put in my POM file and where in order to get rid of this error.
Thanks you so much.
#CPLEXOptimizers#DecisionOptimization