Originally posted by: bengu
Hi All,
I tried running the cuttingStock example with OPL-java code and getting the following error,
Native code library failed to load: ensure the appropriate library (opl<VERSION>.dll/.so) is in your 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 cutstock.Cutstock.main(Cutstock.java:26)
Caused by: java.lang.RuntimeException: Native code library failed to load: ensure the appropriate library (opl<VERSION>.dll/.so) is in your path.
at ilog.concert.IloJNILoader.loadJNI(IloJNILoader.java:79)
at ilog.concert.cppimpl.concert_wrapJNI.<clinit>(concert_wrapJNI.java:15)
... 3 more
I do have -Djava.library.path=C:\ILOG\CPLEX_Studio_AcademicResearch122\opl\bin\x64_win64 and path variable also set to C:\ILOG\CPLEX_Studio_AcademicResearch122\opl\bin\x64_win64. However, Iam still getting the error. Pls note that this is an academic license (not sure whether that would make a difference ).
Thanks for help.
#DecisionOptimization#OPLusingCPLEXOptimizer