Minecraft Server Won't Start or Keeps Crashing: Causes and Fixes
A server that won't start is almost never “broken”: the console says what's wrong, you just need to know where to look. These are the causes behind nearly every case, in order of how often they come up, and what to do about each one.
First: check the console and find the first red line
Open the console
On your PC, the window you started it from. On NapNodes, the server's “Console” at panel.napnodes.com: click “Start” and let everything print.
Look for the first error, not the last
Scroll up to the first line with ERROR, Exception or “Caused by”. The ones after it are usually a consequence of that one.
If it shut down suddenly, check the files
logs/latest.log is the console from the last run and crash-reports/ keeps the report for each crash. On NapNodes they're in “Files”.
Rather not set it up yourself? Minecraft servers from €6 a month, no contract and a full refund within 72 hours. Or create a free Minecraft server, no card needed.
1. “UnsupportedClassVersionError”: the Java version is wrong
The server was built for a newer Java than the one running it. Each Minecraft version needs its own: Java 8 up to 1.16, Java 17 from 1.17 to 1.20.4, Java 21 from 1.20.5 to 1.21.x, and Java 25 for the new version scheme (26.x). A newer Java only sometimes works for an old Minecraft; an older one for a new Minecraft, never. The full table and how to read the number in the error, in the Java guide.
On your PC: install the right Java and start the server with its full path. On NapNodes: if you change version or type from “Mods & plugins” → “Server type”, the panel sets the matching Java itself. If you uploaded a .jar by hand, the Java image is chosen in “Advanced settings” → “Version & startup” → “Docker Image”.
2. A mod or plugin that doesn't fit
It's the most frequent cause on modded servers. The clues in the console: “requires” or “depends on” (a dependency is missing), “Mixin apply failed” (two mods clashing or one for another version), or “net/minecraft/client” (you've put a client-only mod on the server, like a minimap or shaders). For plugins, “Could not load plugin” gives the name of the .jar.
Fix: everything for the same Minecraft version and the same loader (a Fabric mod doesn't work on Forge, nor a Paper plugin on Fabric). If you just installed something, remove it and start again; if you don't know which one it is, remove half the mods, test, and repeat with the half that fails. On NapNodes you remove them from “Mods & plugins” → “Installed”, and when installing from there only the ones that work for your version and type show up, with their dependencies.
3. “OutOfMemoryError” or it closes without a word: not enough memory
“java.lang.OutOfMemoryError: Java heap space” means there isn't enough RAM for the world, the mods or the players online. Sometimes not even that appears: the server shuts down suddenly halfway through loading, especially with big modpacks.
What to do: remove mods you don't use, lower view-distance in server.properties or pregenerate the world so it isn't generated while people play. If it still isn't enough, you need more RAM: a big modpack needs 8 GB or more. On NapNodes, if it crashes twice in an hour we email you saying whether memory was the cause, and RAM can be increased without losing anything: “More RAM” in “My plan & invoices”, or “Buy RAM” in “My servers”.
4. “FAILED TO BIND TO PORT”: the port is in use
Another program is already using that port: almost always, another copy of the same server that didn't close properly, or a server-ip in server.properties with an address the machine doesn't have. On your PC: close the other process (or restart the computer) and leave server-ip empty.
On a rented server, the host sets the address and port: don't change server-ip or server-port in server.properties, and if you did, put them back as they were.
5. The EULA or a badly written config file
“You need to agree to the EULA” appears the first time on your PC: open eula.txt and change eula=false to eula=true. On NapNodes it comes already accepted (you accept it when you buy).
If the error names a file (server.properties, a plugin's .yml or a mod's .toml), it's a badly written line: a tab in a .yml, missing quotes or a missing brace. Undo the last change you made to that file and start again.
6. The world is corrupted or from a newer version
Errors loading “level.dat” or chunks, or the world was created in a newer version than the server's. You can't downgrade on the same world: you have to go back to the version it was played on or restore an earlier backup (how to downgrade). If it starts but some areas are broken or chunks regenerate, it's a corrupted world, and it can be fixed without losing the rest.
That's why it's worth making a backup before every big change. On NapNodes, in “Backups” (with a paid plan): as well as your own, a daily backup is made automatically every night that you can restore.
If it's none of these
Copy the 20 console lines around the first error and search for the exact exception message in quotes: someone has almost always had it before. On NapNodes, open a ticket in the panel's “Help” with those lines and we'll look at it with you.
Frequently asked questions
Why won't my Minecraft server start?
The most common reasons: the wrong Java version, a mod or plugin for another version, not enough memory or a badly written config file. The first error line in the console tells you which.
What Java does my Minecraft server need?
Java 17 from 1.17 to 1.20.4, Java 21 from 1.20.5 to 1.21.x and Java 25 for the 26.x versions. Versions before 1.17 use Java 8.
What does “Failed to bind to port” mean?
That another program is already using that port, usually another copy of the server that didn't close. Close it or restart the computer, and leave server-ip empty in server.properties.
Where is the server crash report?
In the crash-reports folder, and the console from the last run is in logs/latest.log.
Shall we set it up for you?
Minecraft servers from €6 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Minecraft server, no card needed.
Your server doesn't show up in the game? Check it in a second with “Is my Minecraft server online?”: players, version and MOTD, free. Need a player's UUID for the whitelist or permissions? Look it up here. Handing out enchanted items? Build the command with the /give generator.
Free tool: Which Java do I need?. Type your Minecraft version or paste the Java error and we'll tell you which Java your server or your game needs.
Free tool: Why won't my server start?. Paste your Minecraft server's latest.log or crash report and see in plain English what failed and how to fix it.
Free tool: Minecraft region file calculator. From coordinates or an area of your Minecraft world to the r.X.Z.mca file and its folders, to delete or regenerate just that piece.
Keep reading
- Why Your Minecraft Server Is Lagging and How to Fix It
Server lag or connection lag, memory, world generation, farms and heavy mods: how to tell what's going on and what to do in each case.
- High Ping on a Minecraft Server: What It Is and How to Lower It
What ping is in Minecraft, how much is too much, how to tell if it's your connection or the server, and what to do: wifi, distance, downloads, VPN, settings.
- How to Install Datapacks on a Minecraft Server (and Check They Load)
Install datapacks on your Minecraft server: where to upload the .zip, how to turn it on with /reload and /datapack list, and what to do if it doesn't load.