MC ToolboxMC TOOLBOX

Server and files

Server Start Script Generator

Generate Windows start.bat and Linux/macOS start.sh for a Minecraft server JAR with heap limits and optional JVM flags.

Java process

Java 25 is required for Paper 26.1 and newer.

Accept eula.txt before the first start. JVM flags are a starting point; tune them for your host and server version.

How to use the start script

Put the downloaded script beside the server JAR. Windows uses start.bat; Linux and macOS use start.sh and may require chmod +x start.sh. Confirm the installed Java version before launch.

Frequently asked questions

Should -Xms and -Xmx be equal?

Matching values reserve the full heap immediately and are commonly recommended with Aikar flags, but smaller -Xms can reduce idle memory use.

Why does start.sh say permission denied?

Run chmod +x start.sh once, then launch it with ./start.sh.

Generated start.bat

@echo off
:start
java -Xms2G -Xmx4G -jar "server.jar" nogui
echo Server stopped. Restarting in 5 seconds...
timeout /t 5
goto start