Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  when installing Cplex, could not create the java virtual machine

    Posted 02/10/14 07:35 PM

    Originally posted by: HS_Y


    when installing Cplex 12.5.1,  it always pop up error window says "could not create the java virtual machine"

    any fix??

    My PC  properties:

    Win 7, 32 bit, 4G Memory

    has installed jre7, jdk 1.7

    and has set environment properties

    thanks advance! the problem really drives me crazy..


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: when installing Cplex, could not create the java virtual machine

    Posted 02/11/14 05:48 AM

    Dear Huasheng,

    A few more information may help us narrow down your issue...

    - Could you please state the exact name of the Installer that you are trying to execute?  Where did you get it from?  Is this an 'Academic Initiative' version?
    - At what point exactly does the error appear?  Is this as soon as you start the installer? If not, what was the last dialog to appear?
    - You mentioned that you have "set environment properties".  Please list the details of what is set, and to what values.

    Thanks.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: when installing Cplex, could not create the java virtual machine

    Posted 02/11/14 12:45 PM

    Originally posted by: HS_Y


    Dear Xavier,

    sorry for the missing information. here are some detailed information:

    the exact name of the Installer that you are trying to execute: cplex_studio1251.win-x86-32

    Where did you get it from?  Is this an 'Academic Initiative' version?~~I download it from IBM org. Yes, it is an 'Academic Initiative' version which I download using my TA account.

    At what point exactly does the error appear?

    ~~~ I run the installer using 'run as administrator', then dialog (in the attachments 001.png) appears. (sorry it's in Chinese. the word means 'InstallAnyWhere is preparing for setup'). And after 100% it appears dialog 002.png (in the attachments) 'Could not create the Java virtual machine'.

     

    "set environment properties"

    ~~I mean that I have set Java Environment Variables. here are the values:

    java_home (C:\Program Files\Java\jdk1.7.0_51), 

    path (%JAVA_HOME%\jre\bin;C:\Program Files\Java\jre7\bin)

    classpath (%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib)

    and I also set '_JAVA_OPTIONS' to '-Xmx1024M'

     

    thank you very much for your reply.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: when installing Cplex, could not create the java virtual machine

    Posted 02/11/14 06:32 AM

    Originally posted by: cgefflot


    Hello

    A such error could appear when you launch the installer on a wrong platform :  ex:  the win-x86-64 installer on a Win 7 32bits ...

    As mentioned above by Xavier, if you can provide more details, it should help to understand your issue.

    Regards,

    --

    Christophe

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: when installing Cplex, could not create the java virtual machine

    Posted 02/11/14 12:47 PM

    Originally posted by: HS_Y


    platform seems to be OK and the detail is listed in the reply to Xavier.

    Thank you for your kindness.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: when installing Cplex, could not create the java virtual machine

    Posted 02/11/14 03:28 PM

    Originally posted by: cgefflot


    Could you check if the installer can be launched using your own VM (issue could be linked to a mix in your java versions..) :

    From a command prompt (launch cmd.exe) , could you try to execute the following command :

    cplex_studio1251.win-x86-32.exe LAX_VM "C:\Program Files\Java\jdk1.7.0_51\jre\bin\java.exe"

    ps : check before that the path for java.exe is correct in the example above.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: when installing Cplex, could not create the java virtual machine

    Posted 02/11/14 03:51 PM

    Originally posted by: HS_Y


    I execute the command you offered, but it comes out the same as before. After dialog 'InstallAnyWhere is preparing for setup' and then dialog appears 'Could not create the Java virtual machine'.

    eclipse works fine in my PC. So I think the java environment is OK.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: when installing Cplex, could not create the java virtual machine

    Posted 02/11/14 04:05 PM

    Originally posted by: HS_Y


    Good!

    it works! 

    I change the property _JAVA_OPTIONS' to '-Xmx512M' and  execute the command again , it works!! (before the value is 512 and running by clicking the installer cannot work)

    thank you so much!


    #CPLEXOptimizers
    #DecisionOptimization