[READ ME] Need help with Run.bat file?

Discussion in 'Bukkit Help' started by jacklin213, Jul 26, 2012.

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

    jacklin213

  2. Offline

    Omnitv

    In code.
    or in pastie.
     
  3. Offline

    jacklin213

    he means ur startup code
     
  4. Offline

    jacklin213

  5. Offline

    Omnitv

  6. Offline

    AppleRayL

    Hi there! I am having trouble with the run.bat. I have 8 GB G.Skill DDR3-1333MHz RAM and I would like the server to use 4GB of it so that it can run smoothly for 3 people as a survival server with some basic plugins. But when I change the code in the run.bat file it gives me an error:

    Invalid maximum heap size: -Xmx4096M.
    The specified size excees the maximum representable size.
    Error: Could not create the Java virtual Machine.
    Error: A fatal exception has occured. Program will exit.
    Press any key to continue . . .

    Here is the code. I just took it from the bukkit wiki and changed the 1024 to 4096.
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xmx4096M -Xms4096M -jar craftbukkit.jar
    PAUSE
     
  7. Offline

    koupa

    Use That line:
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx4024M -Xms4024M -jar craftbukkit.jar

    It work for me
     
  8. Offline

    jacklin213

    that just changed the java dirctory but maybe that will work
     
  9. Offline

    JOPHESTUS

    Obviously no one, I think these threads are a waste of time. If a user want's help just let them create a new thread.
     
  10. Offline

    jacklin213

Thread Status:
Not open for further replies.

Share This Page