Originally posted by: ormurin
Hi ,
I've been trying to get the CP optimizer (12.8.0) to work in OSX in a java project. It seems like the system fails to find the correct dynamic libraries .I've tried a lot of things, like setting -Djava.library.path, DYLD_LIBRARY_PATH og LP_LIBRARY_PATH.
I tried using the provided makefile for creating and running the Sports example, but this gives the same error:
Nogen som har haft success med at køre CP (IBM ILOG) optimizeren i OSX? Jeg syntes jeg har fulgt vejledningen med at specificere mange parametre. Jeg kan kun få det at compile ikke køre:
Exception in thread "main" java.lang.ExceptionInInitializerError
at ilog.concert.cppimpl.IloEnv.<init>(IloEnv.java:49)
at ilog.concert.IloModelerImpl.<init>(IloModelerImpl.java:34)
at ilog.cp.IloCP.<init>(IloCP.java:127)
at ilog.cp.IloCP.<init>(IloCP.java:120)
at Sports.main(Sports.java:63)
Caused by: java.lang.RuntimeException: 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
at ilog.concert.IloJNILoader.loadJNI(IloJNILoader.java:89)
at ilog.concert.cppimpl.concert_wrapJNI.<clinit>(concert_wrapJNI.java:15)
... 5 more
Any ideas?
#DecisionOptimization#OPLusingCPOptimizer