英文:
Old Minecraft launcher not working when launching a modpack from twitch
问题
以下是翻译好的内容:
我正在尝试从Twitch运行一个Minecraft模组包。该模组包在Minecraft版本12.2中运行,因此使用旧的Minecraft启动器。当我尝试启动它时,游戏输出中显示了以下内容:
异常信息:
在线程“main”中的java.lang.ClassCastException:类jdk.internal.loader.ClassLoaders$AppClassLoader无法转换为类java.net.URLClassLoader(jdk.internal.loader.ClassLoaders$AppClassLoader和java.net.URLClassLoader位于加载器“引导” 的java.base模块中)
位于 net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
位于 net.minecraft.launchwrapper.Launch.main(Launch.java:28)
我想知道这个错误是什么,以及我应该如何修复它。
英文:
I am trying to run a minecraft modpack from Twitch. The modpack runs in minecraft version 12.2, so it uses the old minecraft launcher. When I try to launch it, the following is displayed in the game output:
'''
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)
'''
I was wondering what the error is and how I could go about fixing it.
答案1
得分: -1
请尝试使用另一个Java版本。
我认为启动器对于这个版本太旧了...
英文:
please try it with another Java Version.
I think the Launcher is to Old for it...
专注分享java语言的经验与见解,让所有开发者获益!
评论