Minecraft Crashes: "java.lang.NoClassDefFoundError: com/mojang/authlib/minecraft/HttpMinecraftSessionService"
SeptemSeven opened this issue ยท 0 comments
Game Crashes due to No Class being found
First of all, yeah, I'm using a free launcher to play MC, specifically LauncherFenix. (Which I know it's not great, i'd buy the game IF I COULD since I love it so much)
How it happens
Situation as a whole is pretty confusing, somehow this only happens in the most recent versions of minecraft.
- While 1.20.1 runs just fine (although I haven't tested other versions past 1.20.1 appart from 1.21 and 1.21.1), when I try to play 1.21 it gives me that error, it just crashes at the last momment before the game opens.
I've tried reinstalling Java, updating it, reinstalling the launcher and none of it seems to work.
My hypothesis is that the launcher is outdated and can no longer bypass authentication/antipiracy measures, but I know nothing about Java, nor programming so take it with a grain of salt {:
Even if my problem cannot be solved i'd just like to know why it's happening so I can be in the clear.
Extra Info
- Minecraft version: 1.21.x
- Java version: 21
Crash Report
Minecraft Crash Report
// Don't do that.
Time: 2024-09-14 22:51:36
Description: Initializing game
java.lang.NoClassDefFoundError: com/mojang/authlib/minecraft/HttpMinecraftSessionService
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createMinecraftSessionService(YggdrasilAuthenticationService.java:45)
at fgo.<init>(SourceFile:452)
at net.minecraft.client.main.Main.main(SourceFile:239)
Caused by: java.lang.ClassNotFoundException: com.mojang.authlib.minecraft.HttpMinecraftSessionService
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 12 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createMinecraftSessionService(YggdrasilAuthenticationService.java:45)
at fgo.<init>(SourceFile:452)
Any info that you could have on this is useful.
Thank you :}