Which Java for Minecraft? Version Lookup

Select a Minecraft release to see the exact Java version it requires, read directly from the javaVersion field in the Mojang version manifest. This tool also provides the direct server.jar download link and a full reference table grouping every release by its required Java runtime.

Loading the tool…

Java version for every Minecraft release

JavaMinecraft versions
Java 2526.1 - 26.3
Java 211.20.5 - 1.21.11
Java 171.18 - 1.20.4
Java 161.17 - 1.17.1
Java 81.0 - 1.16.5

From the javaVersion field of each release in the official Mojang version manifest (103 releases).

Minecraft Releases Grouped by Java Version

Running a Minecraft server with the wrong Java runtime causes startup crashes. This lookup tool reads the javaVersion field from the Mojang version manifest for each release so you can install the matching runtime and download the corresponding server.jar file.

These requirements apply whether you run the vanilla server.jar, plugin software like Paper, Purpur, and Spigot, mod loaders like Fabric, Quilt, Forge, and NeoForge, or proxy networks using Velocity and BungeeCord.

First-Time Java Server Setup

Once you have installed the required Java runtime and downloaded the server.jar for your chosen release, follow these steps to launch your server:

  1. Place the server.jar in a dedicated folder and run it with your installed Java runtime.
  2. Before the first start finishes, open the generated eula.txt file and accept the terms by setting eula=true.
  3. Start the server again. By default, Java Edition servers listen on TCP port 25565. (If you use Geyser with Floodgate to let Bedrock players join, or run a Bedrock Dedicated Server, note that Bedrock uses UDP port 19132 for IPv4 and 19133 for IPv6.)
  4. To customize your server, add a 64x64 pixel server-icon.png for the server list and assign operator permissions (levels 1 to 4) in ops.json.

JVM Flags and Hosting Considerations

Minecraft server performance depends mostly on single-thread CPU speed, while RAM must be sufficient to hold loaded chunks, active players, mods, and plugins. When starting a Paper server, administrators commonly add Aikar flags, which are a widely used set of G1GC JVM flags that help manage garbage collection.

If you host at home without port forwarding, a tunnel like playit.gg can expose your local server to players. If you use a hosting provider, shared hosts typically sell plans by RAM and allow you to switch Java versions in a control panel, whereas VPS and dedicated servers give root access so you install and manage Java packages yourself. You can compare providers on hosting.9minecraft.net, which reads plans, prices, locations, and features from each host's website, converts prices to USD per month with ECB exchange rates, links Trustpilot scores, and does not take payment for rankings.

Questions

Where does this tool get the required Java version?

The tool reads the javaVersion field directly from each release's file in the Mojang version manifest, alongside the link to the server.jar.

When did Minecraft switch from Java 17 to Java 21?

Releases from 1.18 to 1.20.4 require Java 17. Starting from release 1.20.5, Java 21 is required.

Why does my server stop immediately on the first start?

Before the server can start for the first time, you must open eula.txt in your server directory and set eula=true to accept the EULA.

What ports does a Minecraft server use by default?

Java Edition servers listen on TCP port 25565 by default. Bedrock Dedicated Servers listen on UDP port 19132 (or 19133 for IPv6).

More server tools

See all →