Skip to content
  • Toggle dark modeSwitch between light and darkAction
  • Open My KitEverything you made, saved in this browserAction
  • Open My KitEverything you made, saved in this browserAction

3 results

Menu

Which Java Does Minecraft Need?

Minecraft 26.3 needs Java 25. Older versions need older Java: find your Minecraft version in the table below.

Java version for each Minecraft version

Minecraft versionsJava neededReleases
26.1 to 26.3Java 255
1.20.5 to 1.21.11Java 2114
1.18 to 1.20.4Java 1713
1.17 to 1.17.1Java 162
1.0 to 1.16.5Java 866

From Mojang's official version files, checked Nov 8, 2026. See every release on the Minecraft versions page.

How to install the right Java

  1. Find your Minecraft version in the table and note the Java number.
  2. Download that Java version from a trusted OpenJDK build such as Eclipse Temurin (Adoptium) or Microsoft Build of OpenJDK. Pick your system (Windows, macOS or Linux) and the JDK or JRE installer.
  3. Run the installer. On Windows, tick the option to set JAVA_HOME and add Java to PATH if it is offered.
  4. Open a new terminal and type java -version. The first line should show the version you installed.
  5. For servers, start with the full path to that Java if you have several installed, for example "C:\Program Files\Eclipse Adoptium\jdk-25…\bin\java.exe" -jar server.jar.

Questions

Do I need to install Java to play Minecraft?

Usually not. The official Minecraft Launcher downloads the right Java for you. You only need to install Java yourself to run a server, a modded launcher setup, or a server .jar file.

Why does my server say 'UnsupportedClassVersionError'?

Your installed Java is older than the version that Minecraft release needs. Install the Java version shown in the table for your Minecraft version and start the server with it.

Can I use a newer Java than required?

Often yes for the game itself, but some older mods and plugins only work on the Java version their Minecraft version was built for. When in doubt, use the version in the table.