1

Minecraft Server run.bat HELP!

oneredstonemaster's Avatar oneredstonemaster5/14/13 3:50 pm
1 emeralds 6.9k 4
5/14/2013 7:40 pm
doom_w0lf's Avatar doom_w0lf
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 oneredstonemaster's Avatar
oneredstonemaster
Level 12 : Journeyman Hunter
6

Create an account or sign in to comment.

4

1
05/14/2013 7:40 pm
Level 14 : Journeyman Cake
doom_w0lf
doom_w0lf's Avatar
do u have java SE?
1
05/14/2013 7:33 pm
Level 18 : Journeyman Network
macgarthur
macgarthur's 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 47 : Master Button Pusher
Leeberator
Leeberator's 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 23 : Expert Network
-Kali-
-Kali-'s 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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome