Decision Optimization

 View Only
  • 1.  Using CPLEX via Java API on Mac M1



  • 2.  RE: Using CPLEX via Java API on Mac M1

    Posted Mon April 26, 2021 12:14 PM
    Did you set the DYLD_LIBRARY_PATH environment variable to point to /Applications/CPLEX_Studio_Beta211/cplex/bin/x86-64_osx or add it in an eclipse run config parameter?

    ------------------------------
    Vincent Beraudier
    ------------------------------



  • 3.  RE: Using CPLEX via Java API on Mac M1

    Posted Tue April 27, 2021 05:53 AM
    Hi Vincent,
    I have already tried out both of those options, but neither one of them seems to work.


    ------------------------------
    Luis Masuch Ibanez
    ------------------------------



  • 4.  RE: Using CPLEX via Java API on Mac M1

    Posted Tue April 27, 2021 08:10 AM
    Can you please provide all the command lines you ran to compile and run the cplex script?
    Also the Java you are using?

    On my side, I created a standard project in intellij, with /Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk to compile some CPLEX samples, then when running, I only needed to add the DYLD_LIBRARY_PATH env var.

    ------------------------------
    Vincent Beraudier
    ------------------------------