Decision Optimization

 View Only
  • 1.  CPLEX not Working on MacOS Catalina

    Posted Fri November 08, 2019 02:29 AM

    Originally posted by: fabioftv


    I updated the software on my MacBook Pro to MacOS Catalina version 10.15, as suggested by my machine. Before doing this, CPLEX was working perfectly fine.

    Now, when I try to open the application, it tells me "To open 'Oplide' you need to install the legacy Java SE 6 runtime. Click 'more info...' to visit the legacy Java SE 6 download website'." When I do, it takes me to the following URL: https://support.apple.com/kb/DL1572?locale=en_US. I download this, but then upon attempting installation it tells me it cannot be done because a newer version of this already exists on my Mac.

    I'm not sure if there is some way to revert to the older version of Java that I need? Or if maybe I need to delete the application that is on my mac currently? (I can't find where it is installed/what the exact name is/etc.) Or if there is some way to get CPLEX to run with the newer version?

    Any help would be greatly appreciated. Thank you!


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX not Working on MacOS Catalina
    Best Answer

    Community Leadership
    Posted Mon November 11, 2019 06:24 AM

    I got the IDE in CPLEX Optimization Studio 12.9 to work on Catalina using the following steps:

     

    - Expand the tar file. This will create a folder named Contents. Don't rename it.
    - Move that folder to /Applications/CPLEX_Studio129/opl/oplide
    - In the same folder /Applications/CPLEX_Studio129/opl/oplide, right-click on the Oplide app, and choose Show Package Contents
    - Navigate to /Applications/CPLEX_Studio129/opl/oplide/Oplide.app/Contents/Eclipse and open the file oplide.ini with TextEdit.
    - The second line is 
         /Applications/CPLEX_Studio129/opl/oplide/jre/bin/java
       Change it to 
         /Applications/CPLEX_Studio129/opl/oplide/Contents/Home/bin/java

     

    Does it work for you as well?


    #DecisionOptimization


  • 3.  Re: CPLEX not Working on MacOS Catalina

    Posted Tue November 12, 2019 03:17 PM

    Originally posted by: fabioftv


    It did work. Thank you very much for the help.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX not Working on MacOS Catalina

    Posted Thu November 28, 2019 10:18 AM

    Originally posted by: max11


    Hi Xavier,

    do you know how to solve  the same problem with Cplex 12.8 on Catalina?

    I have tried to adapt the solution you suggest for Cplex 12.9; the IDE seems to start, but then it freezes.

    Thank you in advance.


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX not Working on MacOS Catalina

    Community Leadership
    Posted Thu November 28, 2019 05:52 PM

    The instructions for 12.9 above indeed don't work for 12.8, and should not be followed. I did get the IDE in CPLEX Optimization Studio 12.8 to run on Catalina by:

    - installing CPLEX Optimization Studio 12.8

    - downloading the Java 6 from https://support.apple.com/kb/DL1572?locale=en_GB

    - following the instructions at https://www.harrisgeospatial.com/Support/Self-Help-Tools/Help-Articles/Help-Articles-Detail/ArtMID/10220/ArticleID/23780/Mac-OS-Catalina-1015-ENVIIDL-and-Legacy-Java-6-Dependencies to create a modified Java 6 installer

    - installing that

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: CPLEX not Working on MacOS Catalina

    Posted Fri November 29, 2019 02:23 AM

    Originally posted by: max11


    Thank you so much Xavier.

    I followed your instructions and now the IDE works fine.


    #CPLEXOptimizers
    #DecisionOptimization