Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Problems with OPL on Mac OS X

    Posted 11/29/11 08:50 AM

    Originally posted by: FloS


    Hello,

    when I run a java-file, that's using the oil library (ilog.opl.*) it stops with an Exception:

    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.IloEnv.<init>(IloEnv.java:49)
    at ilog.opl.IloOplFactory.<init>(IloOplFactory.java:70)
    at Evprofile.getOptimalChargingAmounts(Evprofile.java:212)
    at LocationalPricingMain.simulation(LocationalPricingMain.java:120)
    at LocationalPricingMain.main(LocationalPricingMain.java:33)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
    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)
    ... 10 more

    This problem could be triggered by working together with windows users sharing the same folder (in fact i'm trying to import the project).

    Any ideas?

    Thanks!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Problems with OPL on Mac OS X

    Posted 11/29/11 08:55 AM

    Originally posted by: SystemAdmin


    Did you try to run java with the option
    -Djava.library.path=/path/to/directory/with/dll
    

    where /path/to/directory/with/dll is the directory that contains the libopl<VERSION>.so?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Problems with OPL on Mac OS X

    Posted 11/29/11 09:28 AM

    Originally posted by: FloS


    Thanks for the fast response.

    No I haven't tried that, but I have problems finding the file "libopl<VERSION>.so". In which folder should it be beginning at "IBM/ILOG/CPLEX_Studio_Academic123/"?
    Note that this folder doesn't contain the folder oil which seems to be normal für the Mac version.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Problems with OPL on Mac OS X

    Posted 11/29/11 09:59 AM

    Originally posted by: FloS


    Sorry, my auto-correct function always changes "OPL" to "oil".
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Problems with OPL on Mac OS X

    Posted 11/29/11 10:57 AM

    Originally posted by: SystemAdmin


    Ah, yes, you are right. There is no OPL for MacOS. So you will not be able to use it there.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Problems with OPL on Mac OS X



  • 7.  Re: Problems with OPL on Mac OS X