Direct answer
Use the lines before exit code 1 to identify the real Java, mod, plugin, argument, or configuration failure.
Diagnosis to use: Exit code 1 only means the server process failed; the line immediately before it usually contains the actionable reason.
What it means
Exit code 1 only tells you the process ended unsuccessfully; the real Minecraft/Java/plugin/mod/configuration cause appears earlier in the startup or crash output.
Exit code 1 is a generic process/application failure and you must read the preceding Java/server error. Exit code 137 on Unix/container hosting is a different clue: it commonly means the process received SIGKILL, often from an external memory limit or supervisor.
What to collect: Rerun using the panel’s full console or a terminal that preserves stderr. Record the final fatal exception and launch command. Check Java version, JVM flags, JAR path and file permissions in that order only if the logs suggest those causes.
If you are a player
- This is a server-side startup problem. Send the owner the exact panel/console error; reinstalling your game client will not fix it.
If you run the server
- Read the first Java/JVM error before the final “server stopped” or panel exit-code summary.
- Run
java -versionin the same shell/container/panel runtime that actually launches the server. - Verify the Java release and JVM arguments against the exact server software/version; remove old or copied flags that the current runtime rejects.
- Fix startup/runtime selection before changing world or plugin data, because Minecraft may not have started yet.
Targeted repair: Fix the first concrete error: for example a missing file, obsolete JVM option, incompatible Java release or broken mod. Avoid changing heap sizes just because the panel shows exit code 1.
Verify after the change: Run the identical startup command again and confirm the process stays alive after loading the world.
References
Use the documentation for the exact software and release you run. These sources support the settings or diagnostic behavior used in this fix.
- Oracle Java launcher reference
- PaperMC: Getting started / Java requirements
- PaperMC: Basic troubleshooting
Related fixes and guides
Help us improve this article
Tell us what is missing, unclear, outdated, or incorrect. You can also suggest something we should add.