Java 17 (64-Bit) for Minecraft 1.18 – 1.20.4
The required LTS runtime for 1.18 through 1.20.4 Forge, Fabric, and Quilt modpacks. Applies to Minecraft 1.18, 1.19, 1.20.1 – 1.20.4.
Step-by-step fix for Java version mismatches and JVM launch errors on Minecraft 1.18, 1.19, 1.20.1 – 1.20.4.
If your instance on **Minecraft 1.18, 1.19, 1.20.1 – 1.20.4** exits immediately after clicking Launch, open the **Minecraft Log** tab. An `UnsupportedClassVersionError` or `Incompatible magic value` means the instance is overriding the global runtime with the wrong Java version.
Follow our Java 17 (64-Bit) for Minecraft 1.18 – 1.20.4 reference to point the instance at a verified 64-bit `javaw.exe`.

You either selected a 32-bit Java installation or set Maximum Memory higher than the free physical RAM currently available on Windows.
Only enable that toggle for special backported modpacks (such as GTNH Java 17/21 builds on 1.7.10); for normal packs, switch to the matching Java version instead.
Free and open source. Sign in with the Microsoft account that owns Minecraft, then create your first instance.
