MultiMC / Launcher

A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once
https://multimc.org/
Other
4.27k stars 874 forks source link

Bug with forge 1.12.2 #5411

Closed TomagPlays closed 5 months ago

TomagPlays commented 5 months ago

Operating System

Windows

Description of bug

I have java 17 selected, but when i open 1.12.2, it gives me this: Failed to start Minecraft: 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.(Launch.java:34) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:243) at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:278) at org.multimc.EntryPoint.listen(EntryPoint.java:143) at org.multimc.EntryPoint.main(EntryPoint.java:34) Exiting with -1

Idk if i need to use java 8, if yes, can someone give me the link to download it, i cant find it

Steps to reproduce

run 1.12.2 forge with java 17 selected

Suspected cause

No response

This issue is unique

phit commented 5 months ago

https://github.com/MultiMC/Launcher/wiki/Using-the-right-Java

TomagPlays commented 5 months ago

I figured this thing out: decocraft doesn't work