1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. While the majority of active discourse on D20PRO has moved to our Discord Channels, this forum is still active and checked-in on regularly by our staff. However, for the very latest information, conversation and/or immediate support, please join us on Discord here: http://discord.gg/Ph38ckM
    Dismiss Notice

Installing d20Pro v.3.2.0

Discussion in 'General Discussion' started by Greywinde, Oct 29, 2012.

  1. Greywinde

    Greywinde New Member

    Joined:
    Oct 29, 2012
    Messages:
    3
    Likes Received:
    0
    So, I need some help getting this installed. Here are some system specs for your information, and I'm running Java 7, Update 9. All previous versions of Java have been uninstalled for security reasons and all that.

    System Specs: Windows 7 Professional, 64 bit, 16 GB of RAM, AMD Phenom II x6 1090T processor, XFX Radeon 5850 1 GB

    Error Message from running shortcut
    Java Virtual Machine Launcher
    Error: Could not create the Java Virtual Machine.
    Error: A fatal Exception has occurred. Program will exit.

    Running default batch file generates the following message
    javaw
    Windows cannot find 'javaw'. Make sure you typed the name correctly, and then try again.

    Location of Java 7, Update 9:
    C:\Program Files (x86)\Java\jre7\bin\javaw.exe

    Location of Install:
    C:\Program Files (x86)\MindGene\d20Pro

    So... I edited the batch file.
    Code:
    setlocal
    
    REM By default, we locate java in the path.
    REM If you do not have a valid 32bit JRE found first in the path
    REM then update the below with a full absolute path to a javaw.exe
    
    set JAVA="C:\Program Files (x86)\Java\jre7\bin\javaw.exe"
    set d20Pro="C:\Program Files (x86)\MindGene\d20Pro\d20Pro.dat"
    
    start %JAVA% -Xmx1024m -Dsun.java2d.ddoffscreen=false -Dsun.java2d.noddraw -Dsun.java2d.d3d=false -jar %d20Pro%
    New Error Message from new batch file
    -Xmx1024m
    Windows cannot find '-Xmx1024m'. Make sure you typed the name correctly, and then try again.

    Any ideas on how to fix this? In terms of security, running the newest Java is best... but I think going back to an older version (and leaving it installed) may be my only option here. :/
     
  2. edwardcd

    edwardcd Administrator
    Staff Member

    Joined:
    Oct 13, 2010
    Messages:
    1,374
    Likes Received:
    9
    Find:
    Code:
    set JAVA="C:\Program Files (x86)\Java\jre7\bin\javaw.exe"
    Causes:
    [​IMG]

    Replace with:
    Code:
    set JAVA=C:\Program Files (x86)\Java\jre7\bin\javaw.exe
    Notice: remove quotes around file path
     
  3. Greywinde

    Greywinde New Member

    Joined:
    Oct 29, 2012
    Messages:
    3
    Likes Received:
    0
    Nice try. But that doesn't work because CMD doesn't play well with spaces.

    New Error:
    C:\Program
    Windows cannot find 'C:\Program'. Make sure you typed the name correctly, and then try again.

    [​IMG]
     
  4. Greywinde

    Greywinde New Member

    Joined:
    Oct 29, 2012
    Messages:
    3
    Likes Received:
    0
    Oh, hey. *idea*

    Code:
    set JAVA=C:\"Program Files (x86)"\Java\jre7\bin\javaw.exe
    set d20Pro="C:\Program Files (x86)\MindGene\d20Pro\d20Pro.dat"
    TADA. Fixed the problem, you can't have it around the java line... for whatever reason. And you still need it for the entire line to snag the d20Pro.dat file.

    Not sure why that made a difference, but oh well, it's running now. But if you have any insight as to why that would make a difference, that'd be nice. Thanks!
     
  5. edwardcd

    edwardcd Administrator
    Staff Member

    Joined:
    Oct 13, 2010
    Messages:
    1,374
    Likes Received:
    9
    I'm glad you were able to get it working! We are always here on forums and via email for any question or concern. :)

    In regards to why Java is finicky and requires quotes around certain parts of setting a path and no quotes around others, if Java was a person I'd just categorize it as being an idiosyncrasy.

    And another strange thing, my computer allows me to use:
    Code:
    set JAVA=C:\"Program Files (x86)"\Java\jre7\bin\javaw.exe
    and
    Code:
    set JAVA=C:\Program Files (x86)\Java\jre7\bin\javaw.exe
    and
    Code:
    set JAVA=C:\Program Files (x86)\Java\jre7\bin\javaw
    This may not work for all cases, but it's good to note that the set java path can cause the most issues in the batch file - a reason why I isolated the line issue to correct.
     
  6. Bhai

    Bhai New Member

    Joined:
    Jan 12, 2015
    Messages:
    1
    Likes Received:
    0
    So, I need some help getting this installed. Here are some system specs for your information, and I'm running Java 7, Update 9. All previous versions of Java have been installed for security reasons and all that.
    _________________
    Decrease your exam stress by using our latest a+ test and best quality testking and network test pass guarantee Hodges University and Florida Southern College.
     
  7. hnoor0022

    hnoor0022 New Member

    Joined:
    Apr 25, 2016
    Messages:
    1
    Likes Received:
    0
    Windows cannot find '-Xmx1024m'. Make sure you typed the name correctly, and then try again.
    Any ideas on how to fix this?????
     
  8. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    Are you using the latest version of the software?
    What method are you using to launch the app (batch, shortcut, exe)?
     

Share This Page