Minecraft Localhost Server .batch file not starting?

gr
- in Servers
11

I have been trying to start my localhost server for a few days, but the .batch file can't be started? Neither an error message nor anything else comes up, the window simply closes immediately after double-clicking?

Po

What is in the .bat file?

The text should look like this:

java -Xms3G -Xmx3G -jar server.jar

gr

For me it says:

java -Xmx4024M -Xms4024M -jar PaperSpigot-1.8.8.jar nogui

Po

Did you "accept" the Eula?

gr

Yes, but it can't be because it doesn't open cmd from the start

gr

I just opened the file through CMD and then this came up:

Error occurred during initialization of VM

Could not reserve enough space for 4120576KB object heap

Sy

The entry would be correct if your PaperSpigot-1.8.8.jar had the same name.

If it's called paperspigot.jar, rename it so that both have the same name.

gr

Yes, they are already called the same. Thanks for your answer anyway, but I've found the problem and haven't been able to fix it yet, maybe you know how to fix it:

Error occurred during initialization of VM

Could not reserve enough space for 4120576KB object heap

Stay healthy!

Sy

You don't have enough memory / RAM

gr

I have 16GB of RAM and the Task Manager says that I still have 12GB free?

Sy

Have you also assigned the required number to your server. It needs more than 5GB

Translated, the message means: Could not use enough memory for object 4120576KB.

Re

You don't have enough RAM or you work with a 32-bit JVM and / or a 32-bit operating system.