

On Windows, this is CMD, and you can find it by searching for "CMD" (without quotes) in the start-menu or taskbarĮnter the path to Java, which you found in Part 1. On macOS, this is Terminal, and you can find it by going to /Applications/Utilities in the FinderĪnd launching Terminal, or by searching for "Terminal" (without quotes) in Spotlight. Open your operating system's command line interface. 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. I have tried to manually create the environmental variable, but the following paths did not work:Ĭ:\Program Files\Java\jdk1.8.0_11\java.Applies to macOS and Windows Only.

NOTE: JAVA_HOME is not an environmental variable. The \jdk1.8.0_11 file system looks complete, of course except for the actual application jdk-8u11.exe (or similar file). I also can see the \jdk1.8.0_11 file system in \Program Files\Java, right next to the \jre8 folder. This leads me to believe that JDK is not actually installed, yet I've tried reinstalling and restarting several times, and like I said before, it shows up in Add/Remove programs. However, my IDE does not recognize that JDK is installed, and when I type javac in cmd, I get 'javac' is not recognized as an internal or external command, operable program, or batch file. I can see both JRE and JDK in the Add/Remove Programs list.

I know I have JRE on my computer already, because java -version returns java version "1.8.0_11" in cmd. I know I downloaded the correct 64-bit version. I've been trying to install JDK 8u11 on my Windows 7 64-bit machine all night.
