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.