All versions

What Java version does Minecraft 1.12 need?

Java 8

Minecraft 1.12 was released on 2017-06-02. Mojang's version file lists Java 8 for it, for both the game and a server.

FabricNo
ForgeYes
NeoForgeNo
Top mods listing 1.1231 of 500

See which Java you have:

java -version

Download Java 8 from Adoptium