Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Java Cplex Visual Studio Code Settings

    Posted Tue June 09, 2020 03:21 AM
    I face problems in using Visual Studio Code to call CPLEX with Java. Here is the problem:


    Then I followed the instruction, run java -Djava.library.path= 

    ------------------------------
    Jingfeng Yang
    ------------------------------

    #DecisionOptimization


  • 2.  RE: Java Cplex Visual Studio Code Settings

    Posted Tue June 09, 2020 03:56 AM
    What value did you use as argument for the java.library.path? This must point to the folder that contains the CPLEX .dll/.so file.

    ------------------------------
    Daniel Junglas
    ------------------------------



  • 3.  RE: Java Cplex Visual Studio Code Settings

    Posted Tue June 09, 2020 04:01 AM
    Yes. I point it to the folder contain the libcplex1210.dylib file, which is:

    /Applications/CPLEX_Studio1210/cplex/bin/x86-64_osx

    But it also fails.

    ------------------------------
    Jingfeng Yang
    ------------------------------



  • 4.  RE: Java Cplex Visual Studio Code Settings

    Posted Tue June 09, 2020 04:08 AM
    Does it help to set environment variable DYLD_LIBRARY_PATH to also point to this folder?
    Can you show the full command line you use? Also, what does 'ls -l  /Applications/CPLEX_Studio1210/cplex/bin/x86-64_osx' show?

    ------------------------------
    Daniel Junglas
    ------------------------------