Changing Java Version in layman's terms for a complete idiot
MtnDrew opened this issue ยท 13 comments
I've never had to make Minecraft use a different version of Java before. I'm not using any particular modpack (just some random ones I've put together for myself) and am working from the standard Minecraft Launcher. I cannot for the life of me figure out how to get my launcher to use a different version of Java.
I've gone into the launch options with advanced settings and specified the javaw from the Java 8 update 161 folder. I've moved the folder into the Minecraft folder runtime subdirectory in Program Files(x86) and tried to specify the javaw from there. I've even moved the Javaw from the 161 folder to replace the one in the prepackaged Minecraft Java folder. (This went horribly, had to reinstall)
So as you can see, I'm a complete idiot when it comes to this. I've seen this github is very active, but when reading other threads about people having this problem, it seems like everyone has figured it out in the background without describing it in the thread. So if anyone could please explain it to me like I'm five, that would be so helpful. I love immersive engineering and would really like to do what I need to help it run properly.
I don't know about the native launcher, in the jar launcher you can set the Java version in the profile settings IIRC (though I don't think the jar launcher has it's own Java version).
@BluSunrize it might be a good idea to make a markdown file in this repo with instructions for different launchers and put a link to it in the warning. If you agree I'll ask the guy who posted the instructions for the twitch launcher on reddit whether he'd be fine with us copying the instructions here.
To change your java version on the vanilla Minecraft launcher, you do as follows:
First, install a newer version of Java from the proper website.
Then, select launch options on the top of the launcher:
Select the Forge profile you are currently using to edit it.
You'll see near the bottom a line that reads "Java Executable", next to a grey toggle. You must left-click this toggle to be able to edit the executable.
As indicated above, click the folder next to the java executable line. This will open up your file explorer.
Locate your newer install of java; I assume you know where you installed it, but if not it is probably at C:\Program Files\Java[version]\bin
Select the file named "javaw.exe" (the extension may not show depending on your computer's settings). This should set it as the executable called in the launcher's java executable line.
Save the profile and play it, and it should now be the up-to-date version of Java.
Generally, threads like this get marked closed after solved (as that is how github works), so I expect it takes a bit more work to find instructions previously posted here; I recommend that the devs post instructions for doing so somewhere else as well.
I am not quite certain what this issue could be, as those changes were the only ones I made.
It is a fresh install of jre, and does it work for other profiles?
Ahh. Good suggestion. Vanilla Minecraft 1.12.2 launched perfectly with a switched executable. I guess it's time to review the mods I have installed.
Alright so after moving every single mod out of the Mods folder, I still get the error. Would that mean it's the Forge version I'm using? My current version is 1.12.2.14.23.2.2654. A few days ago this was the latest version of Forge.
I made a video on how to change to the jar launcher, and install java 64 bit because I keep running in to players with this issue - https://youtu.be/-uUr1VAnkcs Hope it helps.
Trying the Twitch launcher might give you a different experience, who knows.
Ah the twitch launcher. I guess I should try it. I don't know what it does differently but we can see if that works if everyone else is using it. I don't ever go on twitch so I didn't think about using it.
i am using twitch launcher heavily but it ends up starting the normal launcher as in those screenshots but with predefined profiles, so you have to setit up in twitch to use proper java
Yikes I really was trying to pull it from my x86 instead of regular program files. Definitely a rookie mistake. Hopefully this helps people though. It booted up and is working just fine now. Thanks ktole.
- Remove x86 Java and install x64. I suspect x86 Java will not be able to use 4Gb of RAM.
2a. If you are fine with MC jar launcher then change path to java in that launcher or in twitch for jar launcher
2b. For native launcher and without twitch - set path to java as per previous screens
2c. For native launcher with twitch:
- rename path-to-minceraft\Install\runtime\jre-x64\1.8.0_25 folder to 1.8.0_25_old
- make symbolic link from you java folder to a 1.8.0_25 in MC (mklink /D "path-to-minecraft\Install\runtime\jre-x64\1.8.0_25" "C:\Program Files\Java\jre1.8.0_171")