Originally posted by: CplexUser1453
Hello
I would like to be able to run one java examples in opl_interfaces from the command line as a jar file :
java -jar <example>.jar
I have no trouble executing the java examples thourgh eclipse but when I make a .jar file (through eclipse) and run it I get the following error :
No version in manifest (not in a jar?), trying 12.3 No version in manifest (not in a jar?), trying 12.3 Native code library failed to load: ensure the appropriate library (opl123.dll/.so) is in your path. Exceptions: no opl123 in java.library.path no opl_lang_wrap_cpp in java.library.path no opl_core_wrap_cpp_java123 in java.library.path no opl_core_wrap_cpp in java.library.path no cp_wrap_cpp_java123 in java.library.path no cp_wrap_cpp in java.library.path no concert_wrap_cpp_java123 in java.library.path no concert_wrap_cpp in java.library.path Exception in thread
"main" java.lang.ExceptionInInitializerError at ilog.concert.cppimpl.concert_wrap.setDebugWrappers(concert_wrap.java:34) at ilog.opl.IloOplFactory.setDebugMode(IloOplFactory.java:152) at mulprod.Mulprod.main(Mulprod.java:28) Caused by: java.lang.RuntimeException: Native code library failed to load: ensure the appropriate library (opl123.dll/.so) is in your path. Exceptions: no opl123 in java.library.path no opl_lang_wrap_cpp in java.library.path no opl_core_wrap_cpp_java123 in java.library.path no opl_core_wrap_cpp in java.library.path no cp_wrap_cpp_java123 in java.library.path no cp_wrap_cpp in java.library.path no concert_wrap_cpp_java123 in java.library.path no concert_wrap_cpp in java.library.path at ilog.concert.IloJNILoader.loadJNI(IloJNILoader.java:80) at ilog.concert.cppimpl.concert_wrapJNI.<clinit>(concert_wrapJNI.java:15) ... 3 more
here is the content of my system variables :
echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/C88256/CPLEX12_4/opl/bin/x86-64_sles10_4.1/ echo $LD_LIBRARY_PATH /home/C88256/CPLEX12_4/opl/lib/:/home/C88256/CPLEX12_4/cplex/lib/
and my java version :
java version
"1.6.0_18" OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
Having searched the forum, there are similar topics :
-
here removing the cplex.jar solved the problem
-
here, the question was left unanswered
-
here, the problem was a 32 bit JRE
-
here, not really sure what the deal was
I did my best to follow the instructions in these topics but was not able to resolve the problem.
I would be helpfull for any hint.
#DecisionOptimization#OPLusingCPLEXOptimizer