How Prism Launcher Java & JVM Configuration works on Windows
Match the exact Java runtime (Java 21, Java 17, or Java 8) to your Minecraft version, tune min/max RAM, and pass GC JVM arguments. Using Adoptium Temurin or Prism's built-in Java auto-downloader on Windows to eliminate exit code 1 and lag spikes.
Prism Launcher is a fast, lightweight C++/Qt launcher that keeps every Minecraft profile in its own isolated instance folder, with zero ads and no background bloatware.
Get the Windows installer or portable ZIP from /download, or dive into the guides linked below.
Each instance has its own version, mods, settings and worlds.
**Built-in Mod & Modpack Browser:** Search and update Modrinth and CurseForge modpacks, shaders, and resource packs directly inside the app.
**Automatic Java Management:** Pair Java 21, Java 17, and Java 8 per instance so modern 1.21 packs and classic 1.12.2 packs both launch cleanly.
Pages in Prism Launcher Java & JVM Configuration
Java 21 (64-Bit) for Minecraft 1.20.5 & 1.21+ — Mojang upgraded Minecraft 1.20.5 and 1.21+ to require a 64-bit Java 21 runtime; launching with Java 17 or Java 8 causes an immediate incompatible class version crash. Applies to Minecraft 1.20.5, 1.20.6, 1.21 – 1.21.4+.
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.
Java 8 (64-Bit 1.8.0) for Minecraft 1.7.10, 1.12.2 & 1.16.5 — Older Forge versions on 1.7.10, 1.12.2, and 1.16.5 rely on Java 8 reflection internals and will crash with Exit Code 1 if launched on Java 17 or Java 21. Applies to Minecraft 1.1 – 1.16.5.
RAM Allocation (Minimum & Maximum Memory MiB) — Setting Maximum Memory too low causes OutOfMemory freezes, while setting it above 10–12 GB can cause long garbage-collection lag spikes. Applies to All Minecraft versions.
Mojang upgraded Minecraft 1.20.5 and 1.21+ to require a 64-bit Java 21 runtime; launching with Java 17 or Java 8 causes an immediate incompatible class version crash. Applies to Minecraft 1.20.5, 1.20.6, 1.21 – 1.21.4+.