Jump to content

Exception in thread "main" java.lang.ClassCastException


stunni

Recommended Posts

Hello,

I get this error when trying to run the client

 

Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
    at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Link to comment
Share on other sites

6 hours ago, stunni said:

This exact setup worked on windows 11, then i downgraded and it doesnt work no matter if i do it the same way i have done or a new way

Then I would imagine that the cast exception comes from an incorrect JDK since I believe 1.8 used Java 7 iirc.

Regardless, the version you are using is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

Currently, supported versions are 1.19.4 (Latest) and 1.18.2 (LTS).

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.