Originally posted by: Saumya_Bhatnagar
Hi,
I am using CPLEX 12.7.0 with Java on Mac OS. I use cplex.jar and ILOG.CP.jar in my application. My application works fine when I run it in Eclipse IDE, but when I try to run it as a .jar file, I get the following error:
No version in manifest (not in a jar?), trying 1260
No version in manifest (not in a jar?), trying 1260
Native code library failed to load: ensure the appropriate library (opl1260.dll/.so) is in your path.
Exceptions:
no opl1260 in java.library.path
The command I use to run the .jar file is:
java -Djava.library.path=/Applications/IBM/ILOG/CPLEX_Studio127/cpoptimizer/bin/x86-64_osx:/Applications/IBM/ILOG/CPLEX_Studio127/cplex/bin/x86-64_osx -jar <name_of_jar_file>.jar <list_of_arguments>
Tried the solution discussed in https://www.ibm.com/developerworks/community/forums/html/topic?id=1c41783f-d0c2-4666-b0ed-ddd172843a30, which did not work. The error seems a bit confusing since there is no opl folder in the CPLEX distribution for Mac OSX.
Any pointers on how to resolve this would be of great help. Thanks.
#CPOptimizer#DecisionOptimization