OptiFine 1.21.1 and 1.21: the right J1 download
Use OptiFine J1 for Minecraft 1.21.1 with Forge 52.0.16 if needed. Plain Minecraft 1.21 has a separate J1 pre9 preview for standalone installation.
Use OptiFine J1 for Minecraft 1.21.1 with Forge 52.0.16 if needed. Plain Minecraft 1.21 has a separate J1 pre9 preview for standalone installation.
Run java -jar with the exact OptiFine filename from your download folder. If the installer opens, choose Install. A terminal error can point to the file, path or Java version.
Use OptiFabric for Minecraft 1.20.1, 1.20.2 or 1.20.4. Match OptiFabric Reforged to an exact OptiFine build on supported newer versions. For a fresh Fabric shader setup, start with Iris and its Sodium dependency.
Standalone OptiFine needs no separate mod loader. In a Forge pack, Forge loads the matching OptiFine JAR from that installation’s mods folder. A Fabric setup needs a separate bridge with version-specific support.
Put the intact OptiFine JAR in the mods folder of the Forge installation you play. Match the exact Minecraft version and the Forge build listed for that JAR. If you're starting fresh, install and launch Forge first.
Run your exact Minecraft: Java Edition version once, open the matching OptiFine JAR and click Install. Then select OptiFine in Minecraft Launcher. On compatible Forge, put the intact JAR in that installation's mods folder and launch Forge.