Saradomin launcher resetting my java option
Forum rules
- Search for existing answers before creating a new topic
- Topic titles must be descriptive and searchable
- Duplicate questions will be redirected to the existing answer(s) and locked.
- Search for existing answers before creating a new topic
- Topic titles must be descriptive and searchable
- Duplicate questions will be redirected to the existing answer(s) and locked.
- DarkMagician
- Noob
- Posts: 10
- Joined: Wed Sep 20, 2023 4:00 am
- Been thanked: 2 times
Saradomin launcher resetting my java option
When I select my java (eclipse adoptium 11 jdk javaw) and press play it says updating... downloading java11 instead and doesnt use the the eclipse adoptium version
- Red Bracket
- Retired Staff
- Posts: 321
- Joined: Thu Aug 11, 2022 7:18 am
- Location: Varrock West Bank
- Has thanked: 307 times
- Been thanked: 76 times
- Contact:
Re: Saradomin launcher resetting my java option
It downloads and sets Java 11 as your Java version if it detects you're not on Java 11 already. Here's the code for the detection:
Can you show me the output if you open a terminal and run (your Java path) -version?
Code: Select all
string javaVersionOutput = CrossPlatform.RunCommandAndGetOutput(
$"{_settingsService.Launcher.JavaExecutableLocation} -version"
);
return javaVersionOutput.Contains("11");
- DarkMagician
- Noob
- Posts: 10
- Joined: Wed Sep 20, 2023 4:00 am
- Been thanked: 2 times
- Red Bracket
- Retired Staff
- Posts: 321
- Joined: Thu Aug 11, 2022 7:18 am
- Location: Varrock West Bank
- Has thanked: 307 times
- Been thanked: 76 times
- Contact:
Re: Saradomin launcher resetting my java option
On Windows, go to the Folder where you have Java downloaded and open a command prompt, then type
On Linux, do the same thing, or type then take the output and append
I've got a Windows virtual machine and I'm trying to test the issue myself. Can you tell me where you downloaded "eclipse adoptium 11 jdk" from? If it's https://adoptium.net/temurin/releases/? ... =openjdk11, that's actually the same one the launcher downloads
Code: Select all
java -version
Code: Select all
which java
Code: Select all
-version
- DarkMagician
- Noob
- Posts: 10
- Joined: Wed Sep 20, 2023 4:00 am
- Been thanked: 2 times
- Red Bracket
- Retired Staff
- Posts: 321
- Joined: Thu Aug 11, 2022 7:18 am
- Location: Varrock West Bank
- Has thanked: 307 times
- Been thanked: 76 times
- Contact:
Re: Saradomin launcher resetting my java option
Looks like you're right, this is a bug in the launcher. Investigating now
- DarkMagician
- Noob
- Posts: 10
- Joined: Wed Sep 20, 2023 4:00 am
- Been thanked: 2 times
- Red Bracket
- Retired Staff
- Posts: 321
- Joined: Thu Aug 11, 2022 7:18 am
- Location: Varrock West Bank
- Has thanked: 307 times
- Been thanked: 76 times
- Contact:
Re: Saradomin launcher resetting my java option
From your video, I can see there's a space in the path, which seems to be causing an issue. I've fixed it in this MR.
Can you test this launcher? https://gitlab.com/2009scape/Saradomin- ... equests/45
You want "pack_windows_sc". If it works, I'll merge the code
Can you test this launcher? https://gitlab.com/2009scape/Saradomin- ... equests/45
You want "pack_windows_sc". If it works, I'll merge the code
- DarkMagician
- Noob
- Posts: 10
- Joined: Wed Sep 20, 2023 4:00 am
- Been thanked: 2 times
Re: Saradomin launcher resetting my java option
fixed! awesomeRed Bracket wrote: ↑Sun Oct 01, 2023 8:24 am From your video, I can see there's a space in the path, which seems to be causing an issue. I've fixed it in this MR.
Can you test this launcher? https://gitlab.com/2009scape/Saradomin- ... equests/45
You want "pack_windows_sc". If it works, I'll merge the code
- ryannathans
- Staff
- Posts: 501
- Joined: Thu Aug 11, 2022 12:25 am
- Location: ɐᴉlɐɹʇsn∀
- Has thanked: 40 times
- Been thanked: 96 times