Search code examples
intellij-idealibrariescplexclips

java.lang.UnsatisfiedLinkError: no cplex1290 in java.library.path


" As the title suggests, I have a problem including two native libraries (CLIPSJNI and cplex.jar) in the same IntelliJ project. I set the parameter Djava.library.path, as shown in the respective folders of the two libraries.

enter image description here


Solution

  • The path passed to java.library.path should be the absolute path to the directory containing cplex1290.dll not cplex.jar. Using the paths in your screenshot, this should be:

    java.library.path="C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\bin\x64_win64"