无法启动 Minecraft 1.12.2 及以下版本

无法启动 Minecraft 1.12.2 及以下版本

我无法启动 Minecraft 1.12.2 及以下版本。

我读过论坛说使用 Java 8,但仍然不起作用。

执行以下命令,然后重新启动计算机:

name@name-ThinkPad-Edge-E430c:~$ sudo apt-get install openjdk-8-jre
[sudo] password for name: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-8-jre is already the newest version (8u252-b09-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 128 not upgraded.
name@name-ThinkPad-Edge-E430c:~$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
name@name-ThinkPad-Edge-E430c:~$ java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

答案1

至于我,你选择了一条艰难的道路。

有专门准备的电力供应协议由 Martin Wimpress 为 Minecraft 提供客户端和服务器:

sudo add-apt-repository ppa:flexiondotorg/minecraft
sudo apt-get update

sudo apt-get install minecraft-installer
# sudo apt-get install minecraft-server-installer # for server

相关内容