Using the aforementioned command format, we can run the OptiFine installer using the following steps. Java command, so we will need to use the full path to Minecraft's Java. This is because your computer does not know where to find the Tried this on your computer without Java manually installed, the command will fail. jar files from the command line using the following command format: java -jar path/to/program.jar. Windows 32-bit: \Program Files (x86)\Minecraft Launcher\runtime\jre-x86\bin\java.exe Windows 64-bit: \Program Files (x86)\Minecraft Launcher\runtime\jre-圆4\bin\java.exe MacOS: ~/Library/Application\ Support/minecraft/runtime/java-runtime-gamma/mac-os/java-runtime-gamma/jre.bundle/Contents/Home/bin/java
If you installed Minecraft in the default locations, the full path to the Java executable is: Minecraft Launcher\runtime\jre-x86 for 32-bit computers. Inside the Launcher's Program Files folder at Minecraft Launcher\runtime\jre-圆4 for 64-bit computers, and On macOS, the bundled Java runtime is located inside the minecraft/runtime/jre-圆4 folder. On Windows and macOS, Minecraft Java Editionīundles and manages its own Java installation. It involves the command line but the process is very easy. You can install OptiFine without also manually installing Java on macOS or Windows. Linux users must manually install Java to play Minecraft, so this guide does not apply.