Pre-requirements¶
Before installing OptiFine, you may need to install some things first to ensure the installer runs properly.
Java runtime¶
You may need to install a Java runtime (JRE) above version 8. It is not recommended to use Oracle's Java. Instead, use Adoptium's (formerly AdoptOpenJDK) Java runtime.
You can choose to install any JRE; all work with the OptiFine installer.
Under the Operating System filter box, select Windows.
Under the Package Type filter box, select JRE. You do not need the JDK.
Under the Architecture filter box, select x64.
Under the Version filter box, select any number; they are all >= 8.
Click the blue button labeled
.msi
.Execute the downloaded MSI file.
Under the Operating System filter box, select Linux.
Under the Package Type filter box, select JRE.
Under the Architecture filter box, select x64.
Under the Version filter box, select any number; they are all >= 8.
Click the blue button labeled
.tar.gz
.Extract the files inside the archive into your PATH; you may need to use
sudo
for this.
Under the Operating System filter box, select macOS.
Under the Package Type filter box, select JRE.
Under the Architecture filter box, select x64.
Under the Version filter box, select any number; they are all >= 8.
Click the blue button labeled
.pkg
.Execute the downloaded PKG file.
Jarfix¶


A jarfox¶
If you have the Java runtime installed, but can't open .jar
files with it, you may need to install Jarfix.
Jarfix is an application that fixes the file association on Windows, so that JAR files will be executed as Java programs.
Download it from https://johann.loefflmann.net/en/software/jarfix/index.html and run it.
Important
This is only for Windows. This issue does not occur in Linux or Mac.