当我运行该java -jar
命令时,它给出以下信息:
wolfgang@laptop1:~$ java -jar /home/wolfgang/Downloads/forge-1.12.2-14.23.5.2768-universal.jar
We appear to be missing one or more essential library files.
You will need to add them to your server before FML and Forge will run successfully.java.lang.ClassNotFoundException: net.minecraft.launchwrapper.Launch
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:52)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)
答案1
首先,尝试安装 Forge“安装程序”.jar
而不是“通用” .jar
。您可以从 Forge 下载安装程序,请确保选择“安装程序”选项,而不是“通用”:
https://files.minecraftforge.net/
如果这仍然没有帮助并且您看到相同的错误,您可以尝试手动下载此处所需的库:
https://www.extravm.com/billing/kb_downloads/fml_libs15.zip
将它们解压到/libraries
你的 Minecraft 服务器上,然后再次运行安装:
java -jar forge*installer.jar