Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cannot run CPLEX by deploying my model in a server

    Posted 02/16/11 11:36 AM

    Originally posted by: SatishKumarA


    Hello everyone,

    I am working on an OPL model which is to be executed via a java interface. When I run the opl model from the stand alone java class it was executing perfectly. When I tried to run the same by deploying in jetty server , i got an error as,

    "Native code library failed to load: ensure the appropriate library (opl<VERSION>.dll/.so) is in your path".
    I checked the path variables and they are updated correctly. Also, I added the CPLEX and OPL jar files to the java project.
    Can anyone please tell us why is this happening? I don't know whether this is related to CPLEX or OPL. So, I posted this message on both forums.

    Regards,
    Satish Kumar A
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Cannot run CPLEX by deploying my model in a server

    Posted 02/16/11 12:08 PM

    Originally posted by: SatishKumarA


    To add to the above description, I am using Windows XP system and ILOG CPLEX Optimization Studio (version 12.2).

    Regards,
    Satish Kumar A
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Cannot run CPLEX by deploying my model in a server

    Posted 02/16/11 03:18 PM

    Originally posted by: GuangFeng


    Check this thread
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Cannot run CPLEX by deploying my model in a server

    Posted 02/17/11 01:21 AM

    Originally posted by: SatishKumarA


    Hi,
    Thanks GuangFeng for your answer.
    We are running Java API in a 32 bit environment of Windows only. Then if we run the model in that stand alone java file, it is working fine. But when we are trying to run the model from jetty server (installed in the same machine), the above mentioned error is coming. If the issue is with 32 bit, it should not run in stand alone application also. Am I right?
    Thanks,
    Satish Kumar A
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Cannot run CPLEX by deploying my model in a server

    Posted 02/17/11 01:21 AM

    Originally posted by: SatishKumarA


    Hi,
    Thanks GuangFeng for your answer.
    We are running Java API in a 32 bit environment of Windows only. Then if we run the model in that stand alone java file, it is working fine. But when we are trying to run the model from jetty server (installed in the same machine), the above mentioned error is coming. If the issue is with 32 bit, it should not run in stand alone application also. Am I right?
    Thanks,
    Satish Kumar A
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: Cannot run CPLEX by deploying my model in a server

    Posted 02/17/11 03:09 PM

    Originally posted by: SystemAdmin


    Have you made sure that <COS_Install_dir>\opl\bin\x86_win32 is added to your PATH? Stand-alone might have worked by specifying path to DLL under JVM argument -Djava.library.path, which might be missing from JVM used to launch Jetty.

    You may also want to check JVM used to launch Jetty. Is it same as what is used for launching stand-alone application?

    Regards,
    Faisal
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: Cannot run CPLEX by deploying my model in a server

    Posted 02/18/11 02:09 AM

    Originally posted by: SatishKumarA


    Thanks everyone for your reply.
    We have solved that issue. Basically, earlier we are running the server through My Eclipse, so my eclipse is taking its own path variables rather than the system path. When we are running the server directly without the involvement of My Eclipse in the process, its working fine i.e, when we are running the server directly, it is working.

    Thanks,
    Satish Kumar A
    #DecisionOptimization
    #OPLusingCPLEXOptimizer