旧版Minecraft启动器无法在从Twitch启动Mod包时正常工作。

huangapple 未分类评论45阅读模式
英文:

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...

huangapple
  • 本文由 发表于 2020年4月6日 03:33:31
  • 转载请务必保留本文链接:https://java.coder-hub.com/61048333.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定