Set Preferred Java Version?

FyberOptic

New Member
Jul 29, 2019
524
0
0
I noticed something by accident in the launcher. It doesn't seem to be defaulting to using my default Java 7 installation. It's using Java 6, even though the launcher itself is starting up using Java 7.

I get this in my log:

Code:
The FTB Launcher has found the following Java versions installed:
Java Version: 1.6.0_45 sorted as: 1.6.0_45 32 Bit Java at : C:\Program Files\Java\jre6\bin\java.exe
Java Version: 1.7.0_51 sorted as: 1.7.0_51 32 Bit Java at : C:\Program Files\Java\jre7\bin\java.exe
Java Version: 1.6.0_45 sorted as: 1.6.0_45 32 Bit Java at : C:\Program Files\Java\jdk1.6.0_45\bin\java.exe
Java Version: 1.7.0 sorted as: 1.7.0_0 32 Bit Java at : C:\Program Files\Java\jdk1.7.0\bin\java.exe
Java Version: 1.7.0_51 sorted as: 1.7.0_51 32 Bit Java at : C:\Windows\system32\java.exe
Preferred: Java Version: 1.6.0_45 sorted as: 1.6.0_45 32 Bit Java at : C:\Program Files\Java\jre6\bin\java.exe

I keep both versions for development purposes, and I've never really had a problem before with anything else. So the question is, how do I make the FTB Launcher use the version of Java that I prefer? And why is it defaulting to using Java 6 to begin with, when I always see the suggestion here for people to update to 7?


EDIT: That's coincidental, apparently someone submitted a pull request to add this feature just a few hours ago!
 
Last edited:

Tristam Izumi

New Member
Jul 29, 2019
1,460
0
0
If you open up your Java settings in your control panel, I think you can toggle some of them to be on or off or something.
 

FyberOptic

New Member
Jul 29, 2019
524
0
0
If you open up your Java settings in your control panel, I think you can toggle some of them to be on or off or something.

You can, but the launcher just doesn't seem to pay any attention to it.

I merged that patch into the loader and recompiled so that I can specify the version I want for the time being. We'll see how this goes.