Windows

What you need

winget install Microsoft.OpenJDK.21

or, with Scoop:

scoop install openjdk21

powershell -ExecutionPolicy Bypass -File scripts/build.ps1

This drops build/paper.exe (~177MB — the server files live inside it). Put it somewhere on your PATH, or call it by its full path.

Your first server

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

That's it. 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

Notes