我最近换到了 Ubuntu,而且我还是个 Linux 新手。我想在我的 Ubuntu 机器上玩 1.8.9 版的 Minecraft。
我听说你需要将你的 java 设置为版本 8,所以我这样做了,现在的结果java -version
是:
marzeq@marzeq-Aspire-VX5-591G:~$ java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~20.04-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
正如预期的那样。
此外,为了采取更好的措施,我将启动器中的 Java 可执行路径设置为/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
。
但游戏仍然崩溃,退出代码为 0。
更奇怪的是,原版甚至不会提供日志,所以我需要使用 Forge Mod Loader 才能查看日志。
日志太小了,我可以在这里上传:
[10:01:32] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[10:01:32] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[10:01:32] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[10:01:32] [main/INFO]: Forge Mod Loader version 11.15.1.1722 for Minecraft 1.8.9 loading
[10:01:32] [main/INFO]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_265, running on Linux:amd64:5.4.0-42-generic, installed at /usr/lib/jvm/java-8-openjdk-amd64/jre
[10:01:32] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:01:32] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[10:01:32] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:01:32] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:01:32] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[10:01:34] [main/INFO]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
[10:01:34] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[10:01:34] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[10:01:34] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[10:01:34] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[10:01:34] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[10:01:34] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[10:01:34] [main/ERROR]: Unable to launch
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_265]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_265]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_265]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_265]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
Caused by: java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:807) ~[?:1.8.0_265]
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:886) ~[?:1.8.0_265]
at org.lwjgl.LinuxSysImplementation.<clinit>(LinuxSysImplementation.java:50) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.Sys.createImplementation(Sys.java:131) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.Sys.<clinit>(Sys.java:116) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at net.minecraft.client.Minecraft.func_71386_F(Minecraft.java:2756) ~[ave.class:?]
at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
... 6 more
[10:01:34] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException
[10:01:34] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:30)
[10:01:34] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[10:01:34] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Runtime.exit(Runtime.java:107)
[10:01:34] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.System.exit(System.java:973)
[10:01:34] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
[10:01:34] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
有人知道发生了什么吗?我将不胜感激您的帮助!
答案1
答案2
我想我找到了让它工作的方法。你的电脑上必须有 Java 8,而不是其他版本,否则可能会出现冲突。然后,你必须彻底清除电脑上任何与 minecraft 相关的文件(我刚刚删除了个人文件夹中的 .minecraft,并在 ubuntu 软件商店中卸载了游戏)。然后我再次下载了游戏,然后使用以下命令运行它:
wget https://launcher.mojang.com/download/Minecraft.tar.gz
tar -xvf Minecraft.tar.gz
cd minecraft-launcher
./minecraft-launcher
这使得游戏重新安装了所有内容(假设你事先删除了所有内容),它应该可以工作,对我的 ubuntu 20LTS 来说有效。
对于任何语法错误,敬请谅解。