Which Java Minecraft needs, and who installs it

Contents
  1. What the version file records
  2. Why the launcher handles this itself
  3. How to make sure it happens automatically
  4. If you play through something other than the official launcher
  5. What this guide leaves out
  6. In short

The current Minecraft version (26.2) tells the launcher exactly which Java it needs — so most players never have to install Java by hand.

Every game version ships with its own version file, published by Mojang. Among other things, it records which Java environment is required to run that version. The launcher reads this field itself and fetches the right environment automatically — there is nothing for you to look up or download separately.

What the version file records

Version file 26.2 contains several fields that relate directly to Java. Here they are:

Field in the version file Value What it means
Java component java-runtime-epsilon The name of the Java environment the launcher selects for this game version
Java major version 25 Which Java major version the launcher will fetch automatically
Minimum launcher version 21 A launcher older than this version cannot run this game version
Assets index 32 The number of the resource set the launcher fetches separately from Java

So the answer to “which Java do I need” is not a guess or advice from some forum post — it is literally a field in a file that Mojang itself publishes.

Why the launcher handles this itself

This field is read by the launcher itself — which is exactly why installing Java separately for the official launcher is not necessary. When you launch the game, the launcher checks the version file, sees the name of the required component (java-runtime-epsilon) and the major version (25), and, if that environment is not already on disk, fetches it on its own.

That is what sets the official launcher apart from installing software manually: you do not need to know the Java version number in advance, hunt for an installer, or check your system architecture. All of that work sits with the launcher.

How to make sure it happens automatically

  1. Update the official Minecraft launcher to its latest version. The minimum launcher version for game version 26.2 is 21, and an outdated launcher may simply not know about the required Java environment.
  2. Pick the game version you want to play from the list. The launcher checks the matching version file itself.
  3. Click “Play”. If the required Java environment is not yet on disk, the launcher fetches it without extra prompts or dialogues.
  4. Do not install Java separately, and do not edit system variables like JAVA_HOME by hand — that will not speed anything up, and it can actually confuse a launcher that is looking for its own environment.

If you play through something other than the official launcher

Everything above applies to Mojang’s official launcher. If you use a third-party launcher — a modpack launcher, a custom startup tool — check that tool’s own documentation: whether it reads the Java environment field from the version file the same way, or whether it expects you to install Java manually. That is the behaviour of a specific third-party tool, not of the game itself.

The same goes for running your own server: the version file discussed here belongs to the game client. A server is a separate program, and whoever runs it is responsible for its own Java setup.

What this guide leaves out

This is not an article about system requirements. The version file we rely on only covers the runtime environment, not the processor, graphics card, or memory you need — that belongs in a separate guide.

It is also not a comparison of the Java and Bedrock editions — the differences between them are covered in a separate guide to Java and Bedrock editions. This piece is specifically about the Java environment inside the Java edition.

And finally: we deliberately do not recommend any specific Java build from a third-party site. The official version file only names the component and the major version — which exact distribution gets fetched is decided by the launcher itself, and for most players that is exactly how it should work.

If you play on a rented server rather than solo — on Minecraft Realms, for example — the question of Java on the server side does not concern you at all: the service handles that environment on its own.

In short

You do not need to install Java by hand for the current Minecraft version: the official launcher reads which component (java-runtime-epsilon) and which major version (25) to fetch straight from the game’s version file, and downloads everything automatically.

Frequently asked questions

Which version of Java does the current Minecraft need?

The official version file for game version 26.2 specifies a Java environment with the component java-runtime-epsilon and Java major version 25 — that is exactly what the launcher fetches automatically.

Do I need to install Java myself for Minecraft?

No, not if you play through the official launcher. It reads the required environment straight from the game's version file and downloads it without your input — there is no need to install Java separately.

What is the minimum launcher version needed for game version 26.2?

21. That is the minimum official launcher version able to run this game version — an older launcher needs updating first.

What is java-runtime-epsilon?

It is the name of the Java component that the official Minecraft 26.2 version file lists as required to run this game version. The launcher recognises that name in the file and fetches the matching environment itself.

Does this apply to the Bedrock edition?

No, this is about the Java edition only. The differences between Java and Bedrock are covered in a separate guide.

What else, besides Java, is recorded in the version file?

Among other things, an assets index numbered 32. It covers a separate set of game resources that the launcher fetches in parallel with the Java environment.

Sources