OptiFine 1.21 won't start: what to do
If OptiFine 1.21 won't start — the game crashes on launch, the Play button stays greyed out, or the OptiFine profile never shows up in the launcher — the cause is almost always one of three things: the wrong Java version, a conflict with other mods, or a broken installation. Below is a step-by-step breakdown, from the most common cause to the rarest. The query "OptiFine 1.21 won't start what to do" is really about diagnosis, not about secret settings that don't exist.
First things first: OptiFine exists in several builds for 1.21, and not every build matches every game version. The mod supports Minecraft 1.21.8, 1.21.5, 1.21.4, 1.21.1, 1.20.4 and 1.20.1 — versions 1.21.2 and 1.21.3 have no official build, and trying to install OptiFine there produces exactly the symptom you're reading about.
Check your Java version — this is cause number one
Minecraft 1.21 requires Java 21. Not Java 17, not Java 8. With an old Java installed, Forge or Fabric will launch but OptiFine will fail during loading with an UnsupportedClassVersionError or simply close the game with no message.
- Check which Java is in use: open your launcher profile settings and look at the java.exe path.
- Install Java 21 (Temurin or Oracle, doesn't matter) and point the launcher to it manually.
- Make sure the bitness matches your system: 64-bit Java on 64-bit Windows.
Separate case: several Java installs exist and the launcher picks the wrong one. Set the full path to javaw.exe inside the Java 21 folder — that solves it in most cases.
OptiFine vs Fabric/NeoForge: loader conflicts
OptiFine is a Forge mod. It does not officially work on Fabric, and if you drop it into a Fabric profile the game won't launch at all. NeoForge is a similar story: some versions work, some don't, and nobody promises stability there.
- Identify which loader the profile uses: Forge, NeoForge or Fabric.
- If it's Fabric, remove OptiFine and install Sodium with Iris — same FPS gain, shader support included.
- If it's Forge, check that the OptiFine build matches the Forge version, not just the game version.
- If it's NeoForge, try the OptiFine build for plain Forge on a separate profile.
The second most common conflict is OptiFine alongside Sodium, Embeddium or Rubidium. These mods do the same job, and together they break rendering. Keep only one.
Clean reinstall: what to delete and in what order
If Java is fine and the loader is right but OptiFine 1.21 still won't start, the installation is corrupted. Reinstall it, but not "on top" — clean it out first.
- Close the game and the launcher completely.
- Remove the OptiFine profile from the launcher's installations list.
- In the .minecraft folder, delete the mods folder and options.txt (old OptiFine graphics settings can conflict).
- Download the OptiFine installer for exactly your game version from the official site.
- Run the installer, choose Install, wait for confirmation.
- Launch the game through the new profile.
If you'd rather not assemble mods by hand, download the FoxyGame launcher is simpler: it installs mods and modpacks in one click and won't let you mix up the loader and the game version.
Logs: where the real cause lives
The crash report sits in .minecraft/crash-reports, the latest log in .minecraft/logs/latest.log. Look for lines containing Exception, Caused by and OptiFine. Typical markers:
- UnsupportedClassVersionError — outdated Java.
- NoSuchMethodError or NoClassDefFoundError — OptiFine and Forge version mismatch.
- Mixin apply failed — conflict with another mod, most often Sodium, Embeddium or shader libraries.
- OutOfMemoryError — not enough allocated RAM, raise it to 4–6 GB in the profile settings.
If the log never mentions OptiFine, the game doesn't see it: the file is in the wrong folder or the profile launches vanilla. Check the .minecraft/mods path and that a modded profile is actually selected.
When to replace OptiFine instead
On 1.21 OptiFine has a real alternative, and it's often more convenient. Sodium + Iris + Lithium on Fabric delivers more FPS, updates faster for new game versions and doesn't conflict with modern mods. OptiFine mostly holds on thanks to its built-in graphics settings and support for older packs.
If you're building a modpack, plan compatibility ahead. For example, download Lucky Leaves — luck and chaos in Minecraft — it has been downloaded 3313 times — targets Forge, NeoForge and Fabric, supports 1.21.8, 1.21.5, 1.21.4, 1.21.1, 1.20.4 and 1.20.1, and plays fine with performance mods as long as you don't run two optimizers at once. For multiplayer, Minecraft servers with a curated list and top chart come in handy.
FAQ
Why is there no OptiFine profile in the launcher after installation?
The installer didn't find the .minecraft folder or the game was running during installation. Close the launcher, rerun the installer and set the .minecraft path manually.
Does OptiFine 1.21 install on Fabric?
Officially no. On Fabric use Sodium and Iris — they cover the same tasks and don't break launching.
The game crashes right after launch with OptiFine — what should I check?
Open latest.log and the crash report. Most often it's outdated Java (you need 21) or a conflict with another performance mod.
Can I run OptiFine together with Sodium?
No point and it's harmful: they duplicate features and conflict. Keep one.
OptiFine doesn't work on 1.21.2 and 1.21.3 — is that normal?
Yes, there are no official builds for those versions. Either roll back to 1.21.1 or switch to Sodium + Iris.