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