连接minecraft服务器

概览:

warning

本文章仅展示连接现有的Minecraft服务器.

工具

oracle java oracle官网 下载版本:Java SE 8u231

Minecraft启动器hmcl Github项目主页 项目官网

# 配置

java设置 以LinuxMint为例:

1
2
3
4
5
vim /etc/profile
#JAVA环境变量
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_191
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

更新变量

1
2
3
4
sudo update-alternatives --install /usr/bin/java java /opt/java/jdk1.8.0_221/bin/java 79
sudo update-alternatives --install /usr/bin/javac javac /opt/java/jdk1.8.0_221/bin/javac 79
sudo update-alternatives --config java
sudo update-alternatives --config javac

check

1
2
3
4
5
6
(base) 
┌─[mardan@LinuxLabs] - [~] - [Sun Dec 01, 10:06]
└─[$] <> java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

运行

java -jar HMCL-3.2.130.jar

1
2
3
4
5
6
7
8
9
10
[10:08:20] [org.jackhuang.hmcl.Launcher.main/INFO] *** HMCL 3.2.130 ***
[10:08:20] [org.jackhuang.hmcl.Launcher.main/INFO] Operating System: Linux 4.15.0-70-generic
[10:08:20] [org.jackhuang.hmcl.Launcher.main/INFO] Java Version: 1.8.0_221, Oracle Corporation
[10:08:20] [org.jackhuang.hmcl.Launcher.main/INFO] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
[10:08:20] [org.jackhuang.hmcl.Launcher.main/INFO] Java Home: /opt/java/jdk1.8.0_221/jre
[10:08:20] [org.jackhuang.hmcl.Launcher.main/INFO] Current Directory: /home/mardan/workspace/minecraft
[10:08:20] [org.jackhuang.hmcl.Launcher.main/INFO] HMCL Directory: /home/mardan/.hmcl
[10:08:20] [org.jackhuang.hmcl.Launcher.main/INFO] Memory: 3540MB
[10:08:20] [org.jackhuang.hmcl.Launcher.lambda$main$2/INFO] Metaspace: 8MB
........

然后选择offline,创建本地用户,安装

安装完后的设置

启动

------ 文章已经结束,谢谢你的阅读 ------
------ article has ended,thank you for reading ------
Thanks support Me

---------------- The End ----------------