Check the Minecraft Java Version Used by Your Server
First check which Minecraft version is actually running on the server, then read the Java version of the running server process. A java -version command on your own computer shows only that computer's default Java. A rented server can use a different runtime selected by the panel at startup.
First check which Minecraft version is actually running on the server, then read the Java version of the running server process. A java -version command on your own computer shows only that computer's default Java. A rented server can use a different runtime selected by the panel at startup.
1. Record the Actual Minecraft Version
Check the installed server software in the panel to see the Minecraft version. If it shows only a profile or file name, check the server's first startup messages. Also note the server platform: Vanilla, Paper, or a specific mod loader such as Fabric, Forge, or NeoForge. The version in the Minecraft client is not enough; it does not have to match the version of the server process.
This distinction matters because Java requirements depend on the specific server software and its Minecraft version. Paper, for example, provides its own mapping in its Getting Started guide. For Paper, the table there recommends Java 21 for versions 1.20 through 1.21.11 and Java 25 starting with 26.1. Mojang's release notes list Java 21 for Minecraft 1.20.5 and Java 25 for 26.1. These are specific version boundaries, not a general recommendation to start every older server with the newest Java.
2. Measure the Java Version of the Running Process
If you have access to the same machine or container, the JDK tool jcmd can query a running process's JVM. Run it as the same operating system account that started the server:
jcmd -l
jcmd 12345 VM.version
Replace 12345 with the process ID of the Minecraft server. The second line queries the JVM version of that running process. According to Oracle's jcmd documentation, the command must run on the same machine and with the same user and group identity as the JVM process. For a separate Docker container, run the query inside the container. The process list may also show startup arguments; do not share them without checking them first.
If possible, use jcmd from the same JDK version as the server. Oracle notes that tools from one JDK version are not supported for diagnosing a different JDK version. If the query fails, first check the machine, account, container, and tool version.
If you do not have access to the process, check which Java runtime is selected for that exact instance in the panel. This initially confirms the configured runtime. It is not an independent measurement of the process that has already started. If the panel neither displays the runtime nor prints it in startup logs, ask your provider for the runtime used by that specific instance.
The java -version command is a useful substitute only if you run it in the same environment and with the same Java executable used by the server. If the startup command specifies a full path to Java, check that exact executable. Oracle's Java command reference describes -version and --version as printing the product version. A command on your local computer, by contrast, does not measure the runtime on the host.
3. Compare the Java Major Version
Compare the measured Java major version with the official requirement for your server platform and game version. The version 21.0.x belongs to major version 21; a version containing 25 belongs to major version 25.
| Server version | Official guidance |
|---|---|
| Paper 1.20 to 1.21.11 | Java 21 recommended |
| Paper from 26.1 | Java 25 recommended |
| Vanilla 1.20.5 | Mojang lists Java 21 |
| Vanilla 26.1 | Mojang lists Java 25 |
This table does not replace the release notes for your exact Vanilla version. Mojang's notes for Minecraft 1.20.5 and Minecraft 26.1 explicitly state the required Java version. For Fabric, Forge, NeoForge, or a modpack, also check the requirements for the relevant loader or pack release. Paper's table does not set those requirements; the Fabric documentation on installing Java also distinguishes by Minecraft version and server JAR.
4. Fix a Mismatch Deliberately
If the running JVM is older than the documented requirement, first check whether your panel offers a Java selection for each server. Do not simply make a global change for all instances. For a mod loader, the selected Java version must also match the exact loader and pack version. If you cannot change the runtime, give the provider the Minecraft version, server software, and measured Java major version; do not include credentials or full startup arguments in the request.
Change Java on a separate test copy in a controlled way if a world or modpack is involved. Start the copy with the same server platform and check that it loads the recorded Minecraft version. For a larger version change, the article on safely updating a Minecraft server describes a separate test and recovery path. If startup still fails, the guide to Minecraft server not starting helps narrow down the first concrete error message.
You have completed the check when you have recorded both the Minecraft version and the Java major version of the running process and compared them with the official version requirement. If you can see only the panel selection, record the result as a configured runtime, not a measured one. If you also want to check the specific server file for Paper, use the guide to checking a Paper server file and its download source.
Find more guides in the documentation. If the runtime value for your instance is not visible, you can ask for the Java version actually used by the process through Contact.
Sources
- PaperMC: Getting Started – Java mapping by Paper version.
- Minecraft: Java Edition 1.20.5 and Minecraft Java Edition 26.1 – Mojang release notes on Java 21 and Java 25.
- Oracle: The
jcmdCommand – querying the JVM version of a running process and access requirements. - Oracle: The
javaCommand – printing the Java product version. - Fabric: Installing Java on Windows – version-specific Java checks for running a server JAR.
Did this guide help? We are happy to help personally.