If you have come here looking for how to open JAR files for Mod Installers like OptiFine, Iris Shaders, Forge & Fabric, then scroll to the bottom of this article.
With the release of the new Minecraft Launcher, you may want to start defining the Java Executable which the game uses to launch with. This can be done in the launcher itself.
- Watch my video here on how to Upgrade to the New Minecraft Launcher 2021 - https://www.youtube.com/watch?v=GKm1ZZd7mBA
- Also Watch my video on how to fix the Forge error (the directory is missing a launcher profile) when installing Forge - https://www.youtube.com/watch?v=2KeWDXnNlAM
- And, Watch my video on how to fix errors with the New Minecraft Launcher here - https://www.youtube.com/watch?v=CC1VPBt0Fx0
Download Links are at the bottom
For defining a Java version for your installations, do the following:-
Click on Browse and navigate to the JAVAW.exe file in the program files directory. The JAWAW.exe file is usually found inside the 'bin' folder.
Do this for each installation you create in the default Minecraft Launcher.
Get the files from here:-
Get the files from here:-
- 1.16.5 and lower: Use JDK 8
- Adoptium OpenJDK (Recommended) - https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot - 1.17, 1.18 and higher: Use JDK 17.0.1
- Adoptium OpenJDK (Recommended) - https://adoptium.net/?variant=openjdk17&jvmVariant=hotspot
- Zulu OpenJDK - https://www.azul.com/downloads/?os=windows&package=jdk (scroll to middle of page for downloads
- Oracle JDK17 - https://jdk.java.net/17/ (unzip file using WinRAR and locate file in 'bin' folder)
This method also works with Custom Launchers like CurseForge, GDLauncher, MultiMC. Simply install the Java JDK files from above links, and in the settings menu of the launchers, navigate to the JAVAW.exe file in the program files directory.
To open mod loaders or shader installers like Forge, OptiFine, Iris Shaders & Fabric, use the Adoptium or Zulu OpenJDK installer from the links above. After installing restart your computer,. You will then be able to open JAR files.