Minecraft Server Startup Script Generator

Make a start.bat or start.sh for your server with the right memory settings and Aikar's flags, the Java settings PaperMC recommends for smoother performance.

Computer
Java flags

start.bat

703 characters

Which Java do I need?

Minecraft 26.1 and newerA recent Java - check that version's release notes
Minecraft 1.20.5 to 1.21.xJava 21
Minecraft 1.18 to 1.20.4Java 17
Minecraft 1.17Java 16
Minecraft 1.16.5 and olderJava 8

If the server closes straight away with "UnsupportedClassVersionError", your Java is too old for that Minecraft version. Setting the minimum and maximum memory (-Xms and -Xmx) to the same value is intentional: Java grabs the memory once at start instead of resizing while players are online.