Java crashes when run.bat is started.

Discussion in 'Bukkit Help' started by BlakViper01, Aug 9, 2012.

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


    Hello everyone. Recently, i've tried to start my own minecraft bukkit server. I had finally finished my run.bat file (or so it may seem). I double clicked the file, then the command prompt appeared, empty. I assumed it was about to tell me all kinds of great things about my server running. But then my java crashed. I have tried this multiple times, and every time java crashes. Here are some important specs that might help to solve the problem:

    - 2.0 GB of ram left
    - 32-bit Operating System
    - 32-bit Java

    Here is what my run.bat file says:

    Please help! Thanks!
  2. Offline


    Firstly check that the path "%ProgramFiles%\Java\jre7\bin\java.exe
    leads to java.exe
    Then try removing the - infront of the craftbukkit-1.3.1-R1.0.jar

    If still not working, rename craftbukkit-1.3.1-R1.0.jar to server.jar and change that in the file (just decreases chance of a bug here)

    If still not working, replace the first 'Xmx1024M' with 'Xincgc'

    If still not working change the second Xmx1024M to Xmx2G
    BlakViper01 likes this.
  3. Offline


    When I removed the "-" infront of the craftbukkit-1.3.1-R1.0.jar a message in the prompt came up.

    "Error: Unable to access jarfile craftbukkit-1.3.1-R1.0.jar"

    Does this mean that the path does not lead to java.exe, and I have to add a path definer?
  4. Offline


    I think that means it cant find the file

    Rename your bukkit to "server", then change that to "server"
    BlakViper01 likes this.
  5. Offline


    So I did what you said, and now I get this message in the prompt.

  6. Offline


    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-1.3.1-R1.0.jar
    ^ use this as your run.bat let me know what happens were going to fix your problem. :D
  7. Offline


  8. Offline


    It says unable to access craftbukkit-blah blah blah.jar
  9. Offline


    whats your craftbukkit version?
  10. Offline


    The newest one
  11. Offline


  12. Offline


  13. Offline


  14. Offline


    I already did that.
  15. Offline


    Ensure that run.bat is in the same folder as the server jar and use the following as the bat file.
    If it states that "java is not an internal or external command" then add the path of the directory where java.exe is (for Java 7, 32 bit: "%ProgramFiles%\Java\jre7\bin") into the system's "Path" environment variable (Look up "Adding java to the path environment variable" if necessary).

    The number in orange is the maximum memory the JVM (i.e. Java) can use.
    The number in blue is the minimum memory the JVM can use.

    The error "Could not reserve enough space for object heap" means that one of those values is too big for your computer. Most probably your minimum memory value.
    Verify how much RAM your computer has and how much of it is free.
    Also, note that "1024M" (1024 MB) = 1 GB.

    What happens then?
    BlakViper01 likes this.
  16. Offline


  17. Offline


    I now know that it has something to do with my RAM. When I view the system page, It says

    "Installed memory (RAM): 2.00 GB"

    What does this mean?
Thread Status:
Not open for further replies.

Share This Page