I have installed CPLEX Studio 128 on a Mac. The IDE works fine, but now I am trying to run an OPL model via the java interfaces.
I have included the oplall.jar file in the project and all is fine until I run the code, at which point I receive the following message
Native code library failed to load: ensure the appropriate library (opl1280.dll/.so) is in your path.
no opl1280 in java.library.path
no oplb in java.library.path
no opl_lang_wrap_cpp in java.library.path
no opl_core_wrap_cpp_java1280 in java.library.path
no opl_core_wrap_cpp in java.library.path
no cp_oaas1280 in java.library.path
no cp_oaas in java.library.path
no cp_wrap_cpp_java1280 in java.library.path
no cp_wrap_cpp in java.library.path
no concert_wrap_cpp_java1280 in java.library.path
no concert_wrap_cpp in java.library.path
I have checked in the folder Applications/CPLEX_Studio128/opl/lib/x86-64_osx/static_pic/ but there is no file OPL1280.so. The list of files in that directory is
I have also run a search for opl1280.so in folder /Applications/CPLEX_Studio128, but this file does not seem to be there.
What is the correct way to run java code that relies on oplall.jar in CPLEX Studio 12.8? What folder should I indicate in -Djava.library.path=? Is this perhaps a bug in the manifest file within the oplall.jar?