1

Minecraft Server run.bat HELP!

1 emerald 4 replies 6,056 views | started 05/14/2013 3:50 pm by oneredstonemaster
C:\Documents and Settings\HP_Administrator\Desktop\MC\Bukkit 32 Bit>java.exe -Xm
x2G -Xms1G -jar craftbukkit.jar
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

C:\Documents and Settings\HP_Administrator\Desktop\MC\Bukkit 32 Bit>PAUSE
Press any key to continue . . .

Please help me fix this error :"(
Posted by avatar
oneredstonemaster
Level 12 : Journeyman Hunter
6

4 replies

1
05/14/2013 7:40 pm
Level 13 Journeyman Cake
doom_w0lf
avatar
do u have java SE?
1
05/14/2013 7:33 pm
Level 20 Expert Network
macgarthur
avatar
TheShadbusher is correct, with 32-bit Java you can only allocate 1gb RAM to the server. You will need to change the values for 1gb aka 1024mb or upgrade to 64-bit Java.
1
05/14/2013 3:58 pm
Level 42 Master Blockhead
LeeTheENTP
avatar
You cannot allocate much more than 1024MB (1GB) to a 32-bit version of Java. Change the -Xmx2G to -Xmx1024M and get rid of the -Xms1G. This way it'll start at the bare minimum amount of RAM it needs, and work its way up as it needs more, up until 1GB.

So, the entire run.bat should look like this:


@echo off

java -Xmx1024M -jar craftbukkit.jar nogui

pause


You don't need to know where your Java program files are located to run a server startup script. It knows what to do automatically.

EDIT: If your computer is running a 64-bit version of Windows, just go uninstall the 32-bit Java and install the latest 64-bit version. Then you can allocate the 2048MB like you wanted to originally, and more if you think your computer can handle it.
1
05/14/2013 3:55 pm
Level 24 Expert Network
-Kali-
avatar
What you do, is make the run.bat yourself. What you do is find whaat folder YOUR java is, and do that. Find where the java is.

Search

Browse

Site

© planetminecraft.com

Welcome