Minecraft start.bat and start.sh Generator

Generate a safe startup script for Paper, Java servers, and proxies with configurable memory, flags, nogui, and auto-restart.

Do not allocate all available memory: leave 1000 to 1500 MB free when your provider does not cover the overhead.

Flags checked against the official Paper documentation on August 19, 2026. View official source

start.sh

Preview
#!/usr/bin/env sh
java -Xms4096M -Xmx4096M -jar paper.jar --nogui

How to generate the file

  1. 1Choose RAM, JAR name, and platform.
  2. 2Select no flags, Aikar, or the proxy preset.
  3. 3Copy or download the script and run it from the server folder.

Memory and flags

  • Paper recommends trying no flags first on modern JVMs.
  • Reserve about 1000–1500 MB outside Xmx for Java and the system.
  • The script does not install Java or automatically accept the EULA.

Startup file questions

Should I always use Aikar flags?

No. Paper recommends starting without flags on Java 17, 21, or newer and using Aikar when measured GC issues exist.

Can I allocate all host memory?

That is not recommended. Java, the operating system, and other processes need memory outside the server heap.

Minecraft start.bat and start.sh Generator | HolyHosting