I have installed IBM ILOG license key correctly,but I can not run the program (write by java in eclipse )using CPLEX in this computer with CPLEX correctly installed in it . These programs work well in another computer with different cplex version. Can you please tell me why does this happen and how to solver such problems?
Here is the error message :
java.lang.UnsatisfiedLinkError: no cplex121 in java.library.path
java.library.path must point to the directory containing the CPLEX shared library
try invoking java with java -Djava.library.path=...
Exception in thread "main" java.lang.UnsatisfiedLinkError: ilog.cplex.Cplex.CPXopenCPLEX([I)J
at ilog.cplex.Cplex.CPXopenCPLEX(Native Method)
Thank you very much
This topic has been locked.
2 replies Latest Post - 2010-05-19T22:15:36Z by Grace360
Pinned topic How to setup cplex when using Java with eclipse?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2010-05-19T22:15:36Z at 2010-05-19T22:15:36Z by Grace360
SystemAdmin 110000D4XK7944 PostsACCEPTED ANSWER
Re: How to setup cplex when using Java with eclipse?2010-05-19T20:42:17Z in response to Grace360Is this occurring inside Eclipse or when you try to run the compiled code (.class or .jar file) outside CPLEX? If it occurs inside CPLEX, you need to add the location of the CPLEX executable to your library entry for Eclipse (Window > Preferences > Java > Build Path > User Libraries). Click the arrow next to cplex.jar to expand it, select Native library location, and set it to point to the folder (should be under .../bin) that contains the CPLEX library (.so extension on Linux, .dll on Windows).
If the problem occurs when running the compiled code, add the same path to the library path option in the command line (-Djava.library.path=...).
Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)