Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  problem to use load and run opl .mod file in eclipse!

    Posted 08/25/09 11:41 PM

    Originally posted by: SystemAdmin


    [Grace18 said:]

    Hi all,
    I try to access opl model from my java code using eclipes. I run the sample MyJNIsample.java in eclipse first (change queens8 to queens,because queens8 doesn't work). I can run the sample in JCreator correctly. And I run the sample using command line as well. But I can't run it correctly in eclipse. Because I use other tools in my project so I can not switch to JCreator. I got the error as following:

    Intiantiating the OPLsolver engine...
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no opljni in java.library.path
      at java.lang.ClassLoader.loadLibrary(Unknown Source)
      at java.lang.Runtime.loadLibrary0(Unknown Source)
      at java.lang.System.loadLibrary(Unknown Source)
      at ilog.opl.engine.OPLsolver.<clinit>(OPLsolver.java:7)
      at MyJNIsample.run(MyJNIsample.java:47)
      at MyJNIsample.main(MyJNIsample.java:81)

    I have spend several days on it. But I can not solve this problem.
    Can someone give me some advice? I will appreciate any of your help!

    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: problem to use load and run opl .mod file in eclipse!

    Posted 08/26/09 03:18 PM

    Originally posted by: SystemAdmin


    [jfk said:]

    Hello there,
    Is it a correct observation that you use OPL3.71 and 1.6JDK? If I remember well 3.71 was in the era of 1.4JDK so I suspect that this JDK mismatch is the problem...

    cheers
    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: problem to use load and run opl .mod file in eclipse!

    Posted 08/26/09 07:40 PM

    Originally posted by: SystemAdmin


    [Grace18 said:]

    It seems not because of JDK 1.6. Today, I run the code in NetBeans, it does work. The default JDK for NetBeans on my computer is JDK 1.6.
    But I really don't know why I can not run it correctly in eclipse. Fortunately, I can use NetBean to continue my work now.

    Cheers,
    #DecisionOptimization
    #MathematicalProgramming-General