stunni Posted June 1, 2023 Posted June 1, 2023 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)
ChampionAsh5357 Posted June 2, 2023 Posted June 2, 2023 What Java version are you using and what Minecraft version?
stunni Posted June 2, 2023 Author Posted June 2, 2023 Java 8 and Forge 1.8.9 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
ChampionAsh5357 Posted June 2, 2023 Posted June 2, 2023 On 6/2/2023 at 12:52 PM, 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 Expand 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).
Recommended Posts