安裝 Java
執行 Sponge 和 Minecraft: Java Edition 都需要 Java。你應該已經安裝過了,但可能需要更新。
SpongeAPI 7 and 8 requires Java 8 (specifically 1.8.0_20 or above). SpongeAPI 8 will also run on later versions of
Java, we recommend Java 17 as the latest LTS version.
安裝 Java
If you have Windows or macOS for your computer, you can download builds of OpenJDK from Adoptium here. Builds of Java 8, 11 and 17 are all available here.
你可能需要自行設定你的 JRE/JDK 路徑
啟動器使用
Profile(Advanced Options)-><你的設定檔>->Java-Executable(.../java.exe)伺服器使用
PATH變數或使用 Java 執行檔的完整路徑
32 位元 vs. 64 位元
If your computer supports it, you should use 64-bit versions of Java whenever possible. Most modern computers will be running 64-bit operating systems. The Adoptium site linked above should detect what you're running and offer the correct download.
你也可以從系統資訊視窗中找到這個。
Windows:按下
<Win>+<Pause>或從系統資訊查看您的系統類型。Linux:開啟一個終端機並輸入
arch或是uname -m。i686-> 32 位元。x86_64-> 64 位元。macOS: All supported Macs are 64-bit - however if you are running an Apple Silicon machine, choose arm64 over x64.
If you are sure to about your system's architecture you can manually choose the correct installer yourself.