> ## Content Index
> Fetch the complete content index at: https://optifinepro.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to install OptiFine with Forge: mods folder and matching builds
- URL: https://optifinepro.com/install-optifine-with-forge/
- Published: 2026-11-27T14:22:42.000Z
- Updated: 2026-11-27T14:22:42.000Z
- Description: 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.
- Author: Tom Fletcher
- Tags: Forge and NeoForge

Put the intact OptiFine JAR in the `mods` folder of the Forge installation you play, matching the Minecraft version and Forge build shown on [OptiFine's downloads page](https://optifine.net/downloads?ref=optifinepro.com). One documented pair for Minecraft 1.21.11 is **OptiFine J9 with Forge 61.0.8**. If Forge already works, start with that installation's folder. For a fresh setup, install and launch the Forge client before you add OptiFine.

## Match the Minecraft version and the listed Forge build

In Minecraft Launcher, open **Installations** and check the selected profile's **Version**. For the example below, [the J9 changelog confirms Forge 61.0.8](https://optifine.net/changelog?f=OptiFine%5F1.21.11%5FHD%5FU%5FJ9.jar&ref=optifinepro.com) for `OptiFine_1.21.11_HD_U_J9.jar`. On the [OptiFine downloads page](https://optifine.net/downloads?ref=optifinepro.com), click **Show all versions** to reveal older rows. Match the exact Minecraft version and the Forge build alongside that file. For a 1.20.1 pack, keep the pack's installed Forge 47 build while you check the corresponding OptiFine release or preview. For a NeoForge installation, check the separate [NeoForge compatibility](https://optifinepro.com/optifine-neoforge/) guide before choosing a file.

Use [the listed Forge build](https://optifinepro.com/which-optifine-version/) when the pack allows it. The Forge site uses its own criteria for **Recommended** and **Latest**. If a modpack requires a different build, keep the working instance and check that combination in a separate copy.

Read the **Forge** column for the exact file, including rows under **\+ Preview versions**. If that row says **N/A**, check its changelog for the reason. The [26.2 K2 pre5 changelog](https://optifine.net/changelog?f=preview%5FOptiFine%5F26.2%5FHD%5FU%5FK2%5Fpre5.jar&ref=optifinepro.com) and [26.1.2 K1 pre2 changelog](https://optifine.net/changelog?f=preview%5FOptiFine%5F26.1.2%5FHD%5FU%5FK1%5Fpre2.jar&ref=optifinepro.com) both list incompatibility with Forge.

The edition matters too. The downloads page offers HD U builds, while [OptiFine's FAQ says Light is incompatible with Forge](https://optifine.net/faq?ref=optifinepro.com). This guide covers Forge, not NeoForge, Fabric or Quilt; a matching Minecraft version alone doesn't make those loaders interchangeable.

## Get the intact OptiFine JAR

On the correct OptiFine row, choose **(Mirror)**, then Download on the developer's page. Mirror stays on optifine.net; the main Download link uses an advertising redirect. Check that the saved name matches your chosen build. For the example here, it must be `OptiFine_1.21.11_HD_U_J9.jar`.

Keep the file intact. [OptiDocs' Forge instructions](https://optifine.readthedocs.io/install%5Fforge.html?ref=optifinepro.com) use the original JAR as a mod. The **Install** button in that JAR is for a separate OptiFine profile.

## If Forge is already working, keep its installation

Start your existing Forge installation without adding OptiFine. Let it reach the title screen, then quit. Back up the installation and its worlds before changing it. If the pack already fails, resolve that failure first; adding OptiFine won't give you a clean starting point.

For a launcher-managed pack, work with that selected instance. Its folder can differ from the system's default Minecraft folder. Prism Launcher, for example, uses **Edit > Mods > Add file** for this step, as its [OptiFine instructions explain](https://prismlauncher.org/wiki/getting-started/installing-optifine/?ref=optifinepro.com). Keep the pack's own Minecraft and loader requirements when choosing the file.

## For a new setup, install the matching Forge client first

These steps are for the official Minecraft Launcher. Open it and run the matching plain Minecraft version once before installing Forge, then close the game and launcher. The Forge client installer checks for `launcher_profiles.json` or `launcher_profiles_microsoft_store.json` in its target folder; its [client-install code rejects a folder without a launcher profile](https://raw.githubusercontent.com/MinecraftForge/Installer/2.0/src/main/java/net/minecraftforge/installer/actions/ClientInstall.java?ref=optifinepro.com).

1. **Download the matching Forge installer.** For J9, open [Forge's Minecraft 1.21.11 downloads](https://files.minecraftforge.net/net/minecraftforge/forge/index%5F1.21.11.html?ref=optifinepro.com), choose **Show all Versions** and find **61.0.8**. Its Installer entry has a **(Direct Download)** link to `forge-1.21.11-61.0.8-installer.jar`. The prominent Latest and Recommended buttons can point to a different build.
2. **Open that installer JAR.** If double-click opens an archive, open a terminal in the download folder and run `java -jar "forge-1.21.11-61.0.8-installer.jar"`. Substitute your downloaded filename. If Java is missing, install a runtime for your operating system and processor from [Eclipse Temurin](https://adoptium.net/temurin/releases/?ref=optifinepro.com). The [Forge support FAQ specifies Java 21 for running Minecraft 1.21.11 with Forge](https://forums.minecraftforge.net/topic/125488-rules-and-frequently-asked-questions-faq/?comment=541436&do=findComment&ref=optifinepro.com). Check the game runtime separately if you use a custom Launcher Java path.
3. **Choose Install client.** That is the action [Forge defines for the Minecraft Launcher](https://raw.githubusercontent.com/MinecraftForge/Installer/2.0/src/main/java/net/minecraftforge/installer/actions/Actions.java?ref=optifinepro.com). The target must be the launcher's data folder containing its profile file. It isn't necessarily the separate Game directory you intend to use for a Forge installation. With a standard launcher setup, leave the detected target in place, then confirm the installation.

[![Windows Forge installer with Install client selected, a .minecraft path and the OK button.](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a02-forge-20261126.webp)](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a02-forge-20261126.webp?ref=optifinepro.com)

Select Install client, check the launcher folder and click OK.

1. **Reopen Minecraft Launcher and select the installed Forge version.** Under **Installations**, enable **Modded** if necessary. For a separate setup, choose **New installation**, set Version to `1.21.11-forge-61.0.8`, and give it its own **Game directory**. The [launcher's create/edit controls](https://minecraft.wiki/w/Minecraft%5FLauncher?ref=optifinepro.com) keep these choices together. Name it so you can distinguish it from other Forge installations.
2. **Start that Forge installation once, then quit at the title screen.** Forge resolves `mods` inside its game directory and creates the folder if needed, as its [path definitions show](https://raw.githubusercontent.com/MinecraftForge/MinecraftForge/1.21.11/fmlloader/src/main/java/net/minecraftforge/fml/loading/FMLPaths.java?ref=optifinepro.com). Confirm Forge starts before adding OptiFine.

## Put the JAR in that installation's mods folder

Add OptiFine after Forge and after the rest of a working pack. The [FAQ's install-order advice](https://optifine.net/faq?ref=optifinepro.com) allows exceptions for mods specifically designed to follow OptiFine. This isn't an instruction to rename the file to force an alphabetical load order.

1. **Open the selected Forge installation's folder.** In Minecraft Launcher > Installations, hover over the Forge installation and use [its folder icon](https://help.minecraft.net/hc/en-us/articles/4409159214605-How-to-Uninstall-Minecraft-Java-Edition?ref=optifinepro.com). In another launcher, open the game directory for the selected instance.

[![Play, folder and more options controls at the right of a Forge installation row.](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a02-folder-20261126.webp)](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a02-folder-20261126.webp?ref=optifinepro.com)

Select the folder icon beside Play to open this installation’s game directory.

1. **Place the intact JAR inside `mods`.** For a default game directory, the [Minecraft Wiki's OS locations](https://minecraft.wiki/w/.minecraft?ref=optifinepro.com) give these final paths:  
  - Windows: `%APPDATA%\.minecraft\mods\OptiFine_1.21.11_HD_U_J9.jar`
  - macOS: `~/Library/Application Support/minecraft/mods/OptiFine_1.21.11_HD_U_J9.jar`
  - Linux: `~/.minecraft/mods/OptiFine_1.21.11_HD_U_J9.jar`  
A custom Game directory or managed instance takes precedence over these defaults.

[![OptiFine_1.21.11_HD_U_J9.jar in the mods folder under .minecraft in Windows File Explorer.](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a02-mods-20261126.webp)](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a02-mods-20261126.webp?ref=optifinepro.com)

The default Windows directory ends in .minecraft, then mods. Use the selected installation’s folder if it has a custom path.

1. **Keep one OptiFine build in the folder.** I'd move an older OptiFine JAR to a backup folder outside the instance, so there is no doubt which build you are loading.

If you share a modpack, leave OptiFine out unless you have the developer's permission. Its [copyright notice requires advance written permission for public redistribution](https://optifine.net/copyright?ref=optifinepro.com). Give other players the exact Minecraft version, Forge build and OptiFine filename so they can get their own copy from optifine.net.

## Launch Forge and confirm OptiFine loaded

In Minecraft Launcher, select the Forge installation and click **Play**. At the title screen, open **Options > Video Settings**. Look for the extra controls named in [OptiFine's English language file](https://raw.githubusercontent.com/sp614x/optifine/master/OptiFineDoc/assets/minecraft/optifine/lang/en%5Fus.lang?ref=optifinepro.com), such as **Shaders...**, **Quality...** and **Details...**. Their positions can vary by Minecraft version.

If the buttons are missing, check the selected installation, its full Minecraft/Forge version and the `mods` folder you edited. For this example, the selected version must be `1.21.11-forge-61.0.8`, with `OptiFine_1.21.11_HD_U_J9.jar` in its `mods` folder.

### If adding OptiFine stops the game from starting

Move the OptiFine JAR out of `mods` and try the previously working pack. If it still fails, keep your backup and read the current launcher error and game log. If the game only fails with OptiFine in place, use the isolated check below before changing more files.

To isolate the pairing, create a separate Forge installation with an empty Game directory and add only the matching OptiFine JAR. Stop at the title screen and Video Settings; don't load an existing modded world with its required mods missing. If the pair starts there, investigate the pack's other components in a copy. Keep required libraries and dependent mods together: a missing-dependency error isn't evidence of a graphics conflict, and a failure appearing after adding a group doesn't identify a single mod by itself.

Once the full intended setup starts and the OptiFine controls appear, continue with that installation. If a later video-setting change causes trouble, **Video Settings > Other > Reset Video Settings** is the [FAQ's route back to default settings](https://optifine.net/faq?ref=optifinepro.com).