Linux

What you need

sudo apt install openjdk-21-jre-headless # Debian/Ubuntu sudo dnf install java-21-openjdk-headless # Fedora

sh scripts/build.sh

This drops build/paper (~177MB — the server files live inside it). Move it somewhere on your PATH, e.g. ~/.local/bin or /usr/local/bin, or call it by its full path.

Your first server

paper new ./my-server
paper run ./my-server --nogui

The first launch takes a bit while the world generates; when you see Done, the server is up. Type stop in the console to shut it down cleanly.

To run a server from its own folder, skip the path entirely:

cd my-server
paper run --nogui -m=2gb

A common way to keep a server running after you log out is a terminal multiplexer (tmux / screen) or a systemd service — paper run itself is a normal foreground process, so wrap it however you like.

Notes