Open orian34 opened 7 months ago
Are you sure it uses the correct java binary?
What would be the correct binary? How would I see that
I would look into the java settings for that instance or at the launch command (in the console).
I would look into the java settings for that instance or at the launch command (in the console).
I looked at it's using java 17, which I assume is the correct one? I tried launching after deleting my custom launch arguments but it didn't change so it doesn't seem to be that either.
....\java\17.0.1+12\bin\java.exe
Having the same issue with linkage Creating new instance of 1.20.5 with or without fabric gets the same error. No such error accures when creating any other version (tested with 1.20.4, 1.20, 1.19)
<html>UnsupportedClassVersionError: net/minecraft/client/main/Main has been compiled by a more recent version of the Java<br>Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0</html>
<html>at java.base/java.lang.ClassLoader.defineClass1(Native Method)<br>at java.base/java.lang.ClassLoader.defineClass(Unknown Source)<br>at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)<br>at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:160)<br>at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:355)<br>at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218)<br>at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)<br>at java.base/java.lang.ClassLoader.loadClass(Unknown Source)<br>at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:463)<br>at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)<br>at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)</html>
Same Operating System env as op
Hm, as to my knowledge the current msrv is Java 17. You could try with a newer version if you want.
Mmh, I'm not sure what newer version you're talking about? I tried checking but the existing jdk 17 installed seems to be the latest. Is it meaning a GD version?
Alright, so after looking more, I had to manually change the java used by GD launcher to use the one I had installed in program files(jdk 22) and now I'm able to launch minecraft.
The problem then is that GD launcher has an automatic version which doesn't work for 1.20.5+ Probably something to look into.
Eather i did not correctly changed java manualy or it did not work for me. However, after reinstalling GD launcher (and updating it to a newest version) and running autoinstall for java inside client i am able to install all minecraft versions without getting the error.
For anyone who is having this issue i suggest to check if your current version of the laucher up to data.
For anyone who is having this issue i suggest to check if your current version of the laucher up to data.
https://github.com/gorilla-devs/GDLauncher-Carbon is the up to date version of the launcher. The Gorilla Devs announced here that the Carbon version of GDLauncher will be maintained, and the legacy launcher (this repo) will not be receiving further updates. I've been using it for 1.21 and it's rock solid.
Describe the bug While trying to play on a 1.20.5 instance, I get an error and it refuses to launch.
To Reproduce Steps to reproduce the behavior:
Operating System:
Additional context I have tried to reinstall JDK 22 but it didn't change anything. The error text: ps stderr: Error: LinkageError occurred while loading main class net.minecraft.client.main.Main java.lang.UnsupportedClassVersionError: net/minecraft/client/main/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0