Running java code relying on oplall.jar in CPLEX Studio 128

Dear support team,

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.
Exceptions:
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

libconcert.a
libcp.a
libcplex.a
libcplexdistmip.a
libicudata.55.dylib
libicudata.dylib
libicui18n.55.dylib
libicui18n.dylib
libicuio.55.dylib
libicuio.dylib
libicule.55.dylib
libicule.dylib
libiculx.55.dylib
libiculx.dylib
libicutu.55.dylib
libicutu.dylib
libicuuc.55.dylib
libicuuc.dylib
libiljs.a
libilocplex.a
libopl.a

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?

Related:

Leave a Reply