Need java help, BAD!

Discussion in 'Bukkit Help' started by parker_digg, Sep 19, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    parker_digg

    In short, java7 was messing up and I cannot fix it. Keeps giving errors, even though I have been using it for months. So, I went to java 6. BUT, it doesn't want to work.

    Code:
    The specified size exceeds the maximum representable size.
    Could not create the Java virtual machine.
    Invalid maximum heap size: -Xmx5G
    I have 16GB of ram on my computer.

    My 8GB heap was too much, 2G is too much. It will only run with 1G. It used to work when I had java 6. What do I need to do??

    Wrapper line.
    Code:
    java -XX\:+UseConcMarkSweepGC -XX\:+UseParNewGC -XX\:+CMSParallelRemarkEnabled -XX\:MaxGCPauseMillis\=50 -Xmx5G -Xms5G -Djline.terminal\=jline.UnsupportedTerminal -jar craftbukkit-0.0.1-SNAPSHOT.jar
    Regular start-up line.
    Code:
    @echo off
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms1G -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    pause
    Both give me that stupid message in the CMD. What do I do to use my full heap again with java 6?
     
  2. Offline

    strontkever

    do u have a 64 bit os?

    if no, weird it did work with java 6
     
  3. Offline

    parker_digg

    Yes running 64bit windows. Did I maybe get the wrong java? It chose and installed it automatically.
     
  4. Offline

    strontkever

    hmm, been a while for me, but try getting 64 bit java again
     
  5. Offline

    parker_digg

    Apparently Java lies when they say you can run 32 and 64. Got it working.
     
Thread Status:
Not open for further replies.

Share This Page