Decision Optimization

Decision Optimization

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

 View Only
  • 1.  How to use Cplex Java library on MacOs

    Posted Wed February 28, 2024 05:25 AM
    Edited by Giovanni Pantuso Wed February 28, 2024 05:43 AM

    Hello, 

    are there specific instructions on how to use Cplex 22.1.1 on a Mac with M2 chip? I am doing what I used to do on the old Mac but it does not work.

    Particularly, I am passing the Dynamic Java libriaries with the flag

    -Djava.library.path=/Applications/.../cplex/bin/arm64_osx

    And I get a java.lang.UnsitisfiedLinkError. It also says (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')

    This is becoming confusing. Am I doing anything wrong?

    Edit: I was using the wrong JDK. This is actually not a problem anymore.



  • 2.  RE: How to use Cplex Java library on MacOs

    Posted Sun March 03, 2024 09:18 PM

    What do you mean by using the wrong JDK? May I know which JDK needs to be used? I am also having an unsatisfied link error. It just says the cplex 2211 couldn't be found. 

    Thanks.

    Yulian



    ------------------------------
    Yulian Zeng
    ------------------------------



  • 3.  RE: How to use Cplex Java library on MacOs

    Posted Mon March 04, 2024 02:15 AM

    The answer is actually available here How do I use CPLEX Optimization Studio 22.1.0 on a macOS/ARM machine?

    Ibm remove preview
    How do I use CPLEX Optimization Studio 22.1.0 on a macOS/ARM machine?
    How do I use CPLEX Optimization Studio 22.1.0 on a macOS/ARM machine, using, for example, M1 or M2 processors?
    View this on Ibm >

    What happened in my case is that I was using an old JDK version.