How to install OptiFine on a Mac
Prepare the exact Minecraft version and a supported desktop Java runtime, install J9 into the launcher data root, then select its OptiFine installation.

Start the exact Minecraft: Java Edition version once in Minecraft Launcher, then quit. Download the matching JAR from OptiFine's downloads page, open it with desktop Java and click Install. Reopen Minecraft Launcher and choose the OptiFine installation. For an existing compatible Prism Forge instance, add the intact JAR through Mods instead.
The standalone example below uses OptiFine_1.21.11_HD_U_J9.jar for Minecraft 1.21.11. For an iPhone, iPad or another Bedrock device, choose graphics options made for that edition.
Match the JAR before changing anything
The downloads table pairs the 1.21.11 J9 release with Forge 61.0.8. Forge matters only if you're taking the Forge route. For the plain launcher, use the standalone installer without adding a mod loader.
Find the row for your exact Minecraft version and choose its release if one exists. Use that row's (Mirror) link on optifine.net, check the complete filename on the download page, and save the JAR in Downloads to match the command below. A preview keeps its preview_ prefix and pre suffix. J9 for 1.21.11 doesn't substitute for a 1.21.8 build.
Start the matching Minecraft version once
Back up your worlds before changing game versions. Minecraft's version-selection instructions warn that opening a world with an older game version can permanently damage it. Preparing the installer doesn't require opening a world.
- In the official Minecraft Launcher for Java Edition, open Installations and start adding an installation.
- Name the installation and select 1.21.11 in its version field. Save it and return to Play.
- Select that saved installation from the list on the launcher landing page and launch it. Let the game reach its title screen, then quit the game and close the launcher.
The J9 installer checks for the matching Minecraft version files. Its missing-version message tells you to download and start that exact version once in the official launcher. A different version you've already played doesn't satisfy that check.
Choose a desktop Java runtime for your Mac
The J9 command below selects an installed JDK 21. Match your macOS release and processor against Oracle's current JDK 21 certification table. Oracle lists macOS 26 on Apple silicon starting with JDK 21.0.9. It lists macOS 15 through 15.6 on Intel and Apple silicon starting with JDK 21.0.5. For other combinations, check another provider's current macOS requirements for JDK 21, such as Eclipse Temurin's supported platforms.

Oracle's Mac installation guide uses AArch64 for Apple silicon and x64 for Intel. For the Oracle package, open the matching .dmg and then its .pkg. Follow Continue > Install and the administrator prompt. For another distribution, use its installation instructions.
In Terminal, run this command to check that macOS can select an installed Java 21:
/usr/libexec/java_home -F -v 21 --exec java -version
Continue when the output identifies Java 21. The -F flag makes java_home stop if it finds no match. If you get that error, finish installing JDK 21 and repeat the version check. Minecraft Launcher can use its own runtime to start the game, even when desktop Java isn't available.
Read a Mac security alert before continuing
Apple distinguishes an unidentified developer from damaged or malicious software. For an app you're certain came from a trustworthy source and hasn't been tampered with, Apple describes an exception after an opening attempt: System Settings > Privacy & Security > Open Anyway, then Open in the returning prompt. This can save an exception for that app.
If macOS reports a damaged file, says the software will damage your computer or moves it to Trash as malware, stop and follow the guidance for that alert. Use the Terminal command after you have confirmed the file came from the official download and understood any security alert.
Run J9, confirm the folder, then click Install
With OptiFine_1.21.11_HD_U_J9.jar saved in Downloads, use this command in Terminal. Java's JAR launch syntax runs the archive's main program through the selected runtime:
/usr/libexec/java_home -F -v 21 --exec java -jar "$HOME/Downloads/OptiFine_1.21.11_HD_U_J9.jar"
If you saved the file elsewhere, replace the quoted path with its full location. Keep the quotes around a path containing spaces. If opening the JAR still fails, use the JAR-opening checks and retain the exact error.

- In the J9 installer, check Folder. Its default on macOS is
~/Library/Application Support/minecraft. This is the official launcher's data root, containing itsversionsandlibrariesfolders, rather than the JAR's Downloads folder or amodsfolder. If your launcher data lives elsewhere, select the root containing the matching version files and launcher profile data. - Before letting the installer change that root, preserve a backup of it with the game and launcher closed. J9 adds version and library files and updates the launcher's profile data.
- Click Install. Wait for “OptiFine is successfully installed.” before treating installation as complete.
- Reopen the Minecraft Launcher. On its Play page, choose the saved OptiFine installation from the installation list and launch that entry. For this example, choose the entry associated with 1.21.11 / HD U J9 if you have several OptiFine installations.

If J9 reports “Cannot find Minecraft 1.21.11”, start the matching vanilla installation and quit at the title screen. Recheck the installer's Folder before trying again. If the installer reports success but the profile is missing, close and reopen Minecraft Launcher and verify which data root it uses. See the general OptiFine installation guide for the full launcher and Forge paths.
For an existing Prism Forge instance, add the JAR as a mod
In an existing Minecraft 1.21.11 / Forge 61.0.8 Prism instance, Prism's OptiFine instructions use Edit > Mods > Add file. Select OptiFine_1.21.11_HD_U_J9.jar from Downloads. Prism selects that instance's destination; keep this JAR out of another instance's files.
Prism warns that some OptiFine versions don't work with Forge. Match both Minecraft and the Forge build before adding the file. These controls apply to Prism's Forge method; its standalone extraction method is a separate procedure.
Check the selected game installation
If you use Minecraft 1.21.8 and the game crashes with shaders on Mac, consult the J6 pre16 crash fix. The 1.21.8 preview guide covers that build and its Forge 58.1.0 pairing.
Open Options > Video Settings in the game. Check for OptiFine's extra settings, such as Details > Show Capes or Other > Reset Video Settings. If the extra controls are missing, check that you launched the OptiFine profile or the Forge instance that contains the JAR.


