Shall try...Be right back Also This is on a VPS! Now we have a new error.... I did edit the path for jre7 instead of jre6.. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
try this. put it into a text document and save it as run.bat in the same folder you have craftbukkit,jar saved. Code: @Echo OFF :start Set jarname=craftbukkit.jar Set MinRam64=1G Set MaxRam64=4G Set MinRam32=512M Set MaxRam32=2G SET BINDIR=%~dp0 CD /D "%BINDIR%" color 7 cls if exist {C:\Program Files\Java\jre7\bin\java.exe} ( color A Echo. Echo 64 Bit mode ping 1.1.1.1 -w 1 >NUL cls color 7 "C:\Program Files\Java\jre7\bin\java.exe" -Xms%MinRam64% -Xmx%MaxRam64% -jar %jarname% goto end ) else ( color C Echo. Echo 32 bit mode ping 2.2.2.2 -w 1 >NUL cls color 7 "C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xms%MinRam32% -Xmx%MaxRam32% -jar %jarname% goto end ) :end cls color E Echo. Echo STOPPED! CLOSE NOW TO STOP FULLY! ping 1.1.1.1 -w 5 >NUL ping 2.2.2.2 -w 5 >NUL goto start
You almost crashed my VPS! The thing kept spamming this: But with all this "TO STOP NOW" and stuff...
it wont crash your server. its a simple loop with a 5 second delay. it means your VPS isnt working properly. all that batch file does is looks to see if you have java 7 64 bit and starts the server, if not it defaults to java 7 32 and starts the server. open the file in notepad and change the line Set jarname=craftbukkit.jar, replacing craftbukkit.jar with the name of your craftbukkit.jar file (e.g. craftbukkit-1.5.2-R0.1.jar)
ok, lets go back to basics... Code: @ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" cls java -Xms1G -Xmx4G -jar craftbukkit.jar pause
you dont have java 64 bit or 4GB RAM to spare. Code: @ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" cls java -Xms1G -Xmx2G -jar craftbukkit.jar.jar pause
Hey there! Your initial error was not caused by -Xmx1024M, you can leave that there, it's fine. Instead, read this thread as it covers many simple problems such as this one and you will find the answer there