How to force minecraft to use java 8
Mia Ramsey
Published Mar 25, 2026

Hm. The game automatically used Java 8 after I installed it. Try deleting Java 7. 1. level 2. jpegxguy. · 6y. You could, but you don’t have to 🙂 You can just press “Edit Profile” and change the java executable path to “C:\Program Files\Java\jre1.8.0_25\bin\javaw.exe” (or wherever Java 8 …
There are other answers below:
C:\Program Files\Java\jre1.8.0_291\bin\java.exe is your java 8 binary. Thus, to execute forge on Java 8, you don’t want to execute the plain java command, since that is java 15. You will need to qualify the whole path to your Java 8 executable, with the command: C:\Program Files\Java\jre1.8.0_291\bin\java.exe -jar
Open Minecraft and wait for the launcher to appear on the screen. There you find listed profiles and an edit button next to that option. Click on edit profile to open the profile editor. The Java Settings at the bottom specify which Java version Minecraft uses.
If you are using Windows you can get there by typing the following into your file browser: For Minecraft version 1.6.4: %appdata%\.minecraft\libraries\net\minecraftforge\minecraftforge\9.11.1.965. For Minecraft version 1.7.2: %appdata%\.minecraft\libraries\net\minecraftforge\forge\1.7.2-10.12.2.1147 (or …
However, I believe OpenJDK is causing performance issues and want to run Minecraft using the runtime/jre-x64/javaw.exe which uses Java Oracle. When I change my instance settings to the Java Executable path for Java Oracle, my game wont launch. If left default (blank), it uses OpenJDK. I’ve already tried a fresh install with no luck.
Make a launcher profile targeting this version of Forge. Set the launcher profile’s GameDir property to the pack’s instance folder (not the instances folder, the folder that has the pack’s name on it). Now launch the pack through that profile and follow the “Mojang Launcher” instructions above. Video:
Choose Javaw.exe in the folder and click Open. Use the drop-down menu to click on “Select the preferred graphics card for this program.” Click the option “High-performance Nvidia processor”. Apply for changes and that’s it. Minecraft will now use your dedicated GPU power to offer a smooth gaming experience with better graphics.
You need the following on your build.sbt file. javacOptions ++= Seq(“-source”, “1.8”, “-target”, “1.8”, “-Xlint”)initialize := { val _ = initialize.value val javaVersion = sys.props(“java.specification.version”) if (javaVersion != “1.8”) sys.error(“Java 1.8 is required for this project.
When you start a server with a specific java version you can do: Code (Text):
Go to your Switchable Graphic then click on ‘Running applications’ and switch over to ‘Installed Profile Applications’. Then click on add application then browse. Minecraft > Install > runtime > jre-x64 > bin > javaw.exe Click on javaw.exe and you’ll add …
Related Questions
What do I need to do to run Java on Minecraft Forge?
If you are using Minecraft Forge version 10.13.1.1217 or later. You do not need to do anything. Newer versions of Minecraft Forge have fixed the incompatibility with Java 8.
How do I change the Java version of Minecraft?
Open Minecraft and wait for the launcher to appear on the screen. There you find listed profiles and an edit button next to that option. Click on edit profile to open the profile editor. The Java Settings at the bottom specify which Java version Minecraft uses.
What version of Java does Minecraft use?
If you just updated Minecraft for instance, a separately installed Java version may still be used by the game. Since Minecraft ships with Java 8 included, the version that I got was Java 1.8.0.25, you may run into compatibility issues with certain mods that don’t play nice with that version of Java.
How to fix Minecraft not launching in Java?
Both issues can be corrected by changing the Java implementation used by the game. Open Minecraft and wait for the launcher to appear on the screen. There you find listed profiles and an edit button next to that option. Click on edit profile to open the profile editor.