Originally posted by: D30R_Ryan_Consylman
I am building a Java program in Eclipse that is using OPL from IBM ILOG Cplex Optimization Studio 12.4. I have the jar file oplall.jar in my referenced libraries. When I run I get the following error:
Native code library failed to load: ensure the appropriate library (opl124.dll/.so) is in your path. Exceptions: no opl124 in java.library.path no opl_lang_wrap_cpp in java.library.path no opl_core_wrap_cpp_java124 in java.library.path no opl_core_wrap_cpp in java.library.path no cp_wrap_cpp_java124 in java.library.path no cp_wrap_cpp in java.library.path no concert_wrap_cpp_java124 in java.library.path no concert_wrap_cpp in java.library.path Exception in thread
"AWT-EventQueue-0" java.lang.ExceptionInInitializerError at ilog.concert.cppimpl.IloEnv.<init>(IloEnv.java:49) at ilog.opl.IloOplFactory.<init>(IloOplFactory.java:70) at OptPane.instantiateModel(OptPane.java:200) at OptPane.actionPerformed(OptPane.java:185) ... at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.RuntimeException: Native code library failed to load: ensure the appropriate library (opl124.dll/.so) is in your path. Exceptions: no opl124 in java.library.path no opl_lang_wrap_cpp in java.library.path no opl_core_wrap_cpp_java124 in java.library.path no opl_core_wrap_cpp in java.library.path no cp_wrap_cpp_java124 in java.library.path no cp_wrap_cpp in java.library.path no concert_wrap_cpp_java124 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) ... 40 more
I have added the line:
-Djava.library.path=
"C:\Program Files\IBM\ILOG\CPLEX_Studio_Preview124\opl\lib; ${env_var:PATH}"
to my VM arguments and have no change. When I check my path, the path to the .dll directory is listed in the
path list. I have also tried uninstalling and reinstalling Cplex Studio, but nothing has worked.
Any help would be greatly appreciated.
#DecisionOptimization#OPLusingCPLEXOptimizer