From de222f2259323e0d0b82a233312c46c24a61676e Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Wed, 11 Feb 2026 20:27:34 +0800
Subject: [PATCH 01/12] update
---
.../main/java/org/jackhuang/hmcl/Main.java | 22 +++++++++++++++++++
.../resources/assets/lang/boot.properties | 2 ++
.../resources/assets/lang/boot_zh.properties | 2 ++
.../assets/lang/boot_zh_Hant.properties | 2 ++
4 files changed, 28 insertions(+)
diff --git a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
index adc1f208b5..1a52a68463 100644
--- a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
+++ b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
@@ -107,6 +107,27 @@ static void showErrorAndExit(String[] args) {
System.exit(1);
}
+ private static void checkOperatingSystem() {
+ String osName = System.getProperty("os.name", "").toLowerCase();
+
+ String errorMessageKey = null;
+ if (osName.contains("haiku")) {
+ errorMessageKey = "boot.unsupported_os.haiku";
+ } else if (osName.contains("os/2") || osName.contains("os2")) {
+ errorMessageKey = "boot.unsupported_os.os2";
+ }
+
+ if (errorMessageKey != null) {
+ SwingUtils.initLookAndFeel();
+ ResourceBundle resourceBundle = BootProperties.getResourceBundle();
+ String errorTitle = resourceBundle.getString("boot.message.error");
+ String errorMessage = resourceBundle.getString(errorMessageKey);
+ System.err.println("Unsupported OS: " + System.getProperty("os.name", ""));
+ SwingUtils.showErrorDialog(errorMessage, errorTitle);
+ System.exit(1);
+ }
+ }
+
private static void checkDirectoryPath() {
String currentDir = System.getProperty("user.dir", "");
String jarPath = getThisJarPath();
@@ -142,6 +163,7 @@ private static String getThisJarPath() {
}
public static void main(String[] args) throws Throwable {
+ checkOperatingSystem();
checkDirectoryPath();
if (getJavaFeatureVersion(System.getProperty("java.version")) >= MINIMUM_JAVA_VERSION) {
EntryPoint.main(args);
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot.properties b/HMCLBoot/src/main/resources/assets/lang/boot.properties
index c6b43070ef..7fc31d1061 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot.properties
@@ -18,5 +18,7 @@
boot.unsupported_java_version=HMCL requires Java 17 or later to run, but still supports launching games with Java 6~16. Please install the latest version of Java and try opening HMCL again.\nYou can keep your old version of Java. HMCL can detect and manage multiple Java installations, and will automatically select the appropriate Java version for your game.
boot.manual_update=HMCL cannot complete automatic updates in the current environment. Please download the latest version of HMCL manually.\nWould you like to go to the download page?
+boot.unsupported_os.haiku=HMCL doesn't support Haiku OS due to some technical issues.\nIf you still want to play Minecraft on Haiku OS, consider other launchers.
+boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other mainstream OS.
boot.message.error=Error
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
index 6ac05b2c26..36d4ed0870 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
@@ -18,5 +18,7 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能运行,但依然支持使用 Java 6~16 启动游戏。请安装最新版本的 Java 再尝试启动 HMCL。\n你可以继续保留旧版本 Java。HMCL 能够识别与管理多个 Java,并会自动根据游戏版本为你选择合适的 Java。\n你可以访问 https://docs.hmcl.net/help.html 页面寻求帮助。
boot.manual_update=HMCL 在当前环境无法完成自动更新,请手动下载最新版本的 HMCL。\n是否前往下载页面?
+boot.unsupported_os.haiku=HMCL 因技术问题尚不支持 Haiku OS。\n若您仍希望在 Haiku OS 上运行 Minecraft,请考虑使用其他启动器。
+boot.unsupported_os.os2=HMCL 永远不会不支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
boot.message.error=错误
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
index 78c25c4149..a7b8d42aea 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
@@ -18,5 +18,7 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能執行,但依然支援使用 Java 6~16 啟動遊戲。請安裝最新版本的 Java 再嘗試開啟 HMCL。\n你可以繼續保留舊版本 Java。HMCL 能夠識別與管理多個 Java,並會自動根據遊戲版本為你選取合適的 Java。
boot.manual_update=HMCL 在當前環境無法完成自動更新,請手動下載最新版本的 HMCL。\n是否前往下載頁面?
+boot.unsupported_os.haiku=HMCL 因技術問題並不支援 Haiku OS。\n若您仍希望在 Haiku OS 上執行 Minecraft,請考慮使用其他啟動器。
+boot.unsupported_os.os2=HMCL 永遠不會不支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
boot.message.error=錯誤
From c047c5abbff0d87cc3190b05b84680db9ab4a6c9 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Wed, 11 Feb 2026 20:38:45 +0800
Subject: [PATCH 02/12] update
---
HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
index 1a52a68463..ee21fd62df 100644
--- a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
+++ b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
@@ -25,6 +25,7 @@
import java.nio.file.Paths;
import java.security.CodeSource;
import java.security.ProtectionDomain;
+import java.util.Locale;
import java.util.ResourceBundle;
/**
@@ -108,7 +109,7 @@ static void showErrorAndExit(String[] args) {
}
private static void checkOperatingSystem() {
- String osName = System.getProperty("os.name", "").toLowerCase();
+ String osName = System.getProperty("os.name", "").toLowerCase(Locale.ROOT);
String errorMessageKey = null;
if (osName.contains("haiku")) {
From 051ec589f9cad46c7836af36c251ca2b80f1a857 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Wed, 11 Feb 2026 22:00:11 +0800
Subject: [PATCH 03/12] update
---
HMCLBoot/src/main/resources/assets/lang/boot.properties | 2 +-
HMCLBoot/src/main/resources/assets/lang/boot_zh.properties | 2 +-
HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot.properties b/HMCLBoot/src/main/resources/assets/lang/boot.properties
index 7fc31d1061..587296734b 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot.properties
@@ -18,7 +18,7 @@
boot.unsupported_java_version=HMCL requires Java 17 or later to run, but still supports launching games with Java 6~16. Please install the latest version of Java and try opening HMCL again.\nYou can keep your old version of Java. HMCL can detect and manage multiple Java installations, and will automatically select the appropriate Java version for your game.
boot.manual_update=HMCL cannot complete automatic updates in the current environment. Please download the latest version of HMCL manually.\nWould you like to go to the download page?
-boot.unsupported_os.haiku=HMCL doesn't support Haiku OS due to some technical issues.\nIf you still want to play Minecraft on Haiku OS, consider other launchers.
+boot.unsupported_os.haiku=HMCL doesn't support Haiku OS due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.
boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other mainstream OS.
boot.message.error=Error
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
index 36d4ed0870..75d445b25a 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
@@ -18,7 +18,7 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能运行,但依然支持使用 Java 6~16 启动游戏。请安装最新版本的 Java 再尝试启动 HMCL。\n你可以继续保留旧版本 Java。HMCL 能够识别与管理多个 Java,并会自动根据游戏版本为你选择合适的 Java。\n你可以访问 https://docs.hmcl.net/help.html 页面寻求帮助。
boot.manual_update=HMCL 在当前环境无法完成自动更新,请手动下载最新版本的 HMCL。\n是否前往下载页面?
-boot.unsupported_os.haiku=HMCL 因技术问题尚不支持 Haiku OS。\n若您仍希望在 Haiku OS 上运行 Minecraft,请考虑使用其他启动器。
+boot.unsupported_os.haiku=HMCL 因技术问题尚不支持 Haiku 操作系统。\n若您仍希望在 Haiku 上运行 Minecraft,请考虑使用其他启动器。
boot.unsupported_os.os2=HMCL 永远不会不支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
boot.message.error=错误
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
index a7b8d42aea..0e1e217af9 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
@@ -18,7 +18,7 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能執行,但依然支援使用 Java 6~16 啟動遊戲。請安裝最新版本的 Java 再嘗試開啟 HMCL。\n你可以繼續保留舊版本 Java。HMCL 能夠識別與管理多個 Java,並會自動根據遊戲版本為你選取合適的 Java。
boot.manual_update=HMCL 在當前環境無法完成自動更新,請手動下載最新版本的 HMCL。\n是否前往下載頁面?
-boot.unsupported_os.haiku=HMCL 因技術問題並不支援 Haiku OS。\n若您仍希望在 Haiku OS 上執行 Minecraft,請考慮使用其他啟動器。
+boot.unsupported_os.haiku=HMCL 因技術問題並不支援 Haiku 作業系統。\n若您仍希望在 Haiku 上執行 Minecraft,請考慮使用其他啟動器。
boot.unsupported_os.os2=HMCL 永遠不會不支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
boot.message.error=錯誤
From a831a9e79e284104b77ee7edfb8feac314fd3f48 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Wed, 11 Feb 2026 23:34:36 +0800
Subject: [PATCH 04/12] update
---
HMCLBoot/src/main/resources/assets/lang/boot.properties | 4 ++--
HMCLBoot/src/main/resources/assets/lang/boot_zh.properties | 4 ++--
.../src/main/resources/assets/lang/boot_zh_Hant.properties | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot.properties b/HMCLBoot/src/main/resources/assets/lang/boot.properties
index 587296734b..8dacc4fa21 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot.properties
@@ -18,7 +18,7 @@
boot.unsupported_java_version=HMCL requires Java 17 or later to run, but still supports launching games with Java 6~16. Please install the latest version of Java and try opening HMCL again.\nYou can keep your old version of Java. HMCL can detect and manage multiple Java installations, and will automatically select the appropriate Java version for your game.
boot.manual_update=HMCL cannot complete automatic updates in the current environment. Please download the latest version of HMCL manually.\nWould you like to go to the download page?
-boot.unsupported_os.haiku=HMCL doesn't support Haiku OS due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.
-boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other mainstream OS.
+boot.unsupported_os.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.
+boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.
boot.message.error=Error
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
index 75d445b25a..5467ba5fa6 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
@@ -18,7 +18,7 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能运行,但依然支持使用 Java 6~16 启动游戏。请安装最新版本的 Java 再尝试启动 HMCL。\n你可以继续保留旧版本 Java。HMCL 能够识别与管理多个 Java,并会自动根据游戏版本为你选择合适的 Java。\n你可以访问 https://docs.hmcl.net/help.html 页面寻求帮助。
boot.manual_update=HMCL 在当前环境无法完成自动更新,请手动下载最新版本的 HMCL。\n是否前往下载页面?
-boot.unsupported_os.haiku=HMCL 因技术问题尚不支持 Haiku 操作系统。\n若您仍希望在 Haiku 上运行 Minecraft,请考虑使用其他启动器。
-boot.unsupported_os.os2=HMCL 永远不会不支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
+boot.unsupported_os.haiku=HMCL 因技术问题尚不支持 Haiku。\n若您仍希望在 Haiku 上游玩 Minecraft,请考虑使用其他启动器。
+boot.unsupported_os.os2=HMCL 永远不会支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
boot.message.error=错误
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
index 0e1e217af9..9ba9a13a2f 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
@@ -18,7 +18,7 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能執行,但依然支援使用 Java 6~16 啟動遊戲。請安裝最新版本的 Java 再嘗試開啟 HMCL。\n你可以繼續保留舊版本 Java。HMCL 能夠識別與管理多個 Java,並會自動根據遊戲版本為你選取合適的 Java。
boot.manual_update=HMCL 在當前環境無法完成自動更新,請手動下載最新版本的 HMCL。\n是否前往下載頁面?
-boot.unsupported_os.haiku=HMCL 因技術問題並不支援 Haiku 作業系統。\n若您仍希望在 Haiku 上執行 Minecraft,請考慮使用其他啟動器。
-boot.unsupported_os.os2=HMCL 永遠不會不支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
+boot.unsupported_os.haiku=HMCL 因技術問題並不支援 Haiku。\n若您仍希望在 Haiku 上遊玩 Minecraft,請考慮使用其他啟動器。
+boot.unsupported_os.os2=HMCL 永遠不會支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
boot.message.error=錯誤
From 735c3251779c6bccd8e874e874ee0a19dd570053 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Wed, 11 Feb 2026 23:54:35 +0800
Subject: [PATCH 05/12] update
---
HMCLBoot/src/main/resources/assets/lang/boot_zh.properties | 2 --
HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties | 2 --
2 files changed, 4 deletions(-)
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
index 5467ba5fa6..6ac05b2c26 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
@@ -18,7 +18,5 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能运行,但依然支持使用 Java 6~16 启动游戏。请安装最新版本的 Java 再尝试启动 HMCL。\n你可以继续保留旧版本 Java。HMCL 能够识别与管理多个 Java,并会自动根据游戏版本为你选择合适的 Java。\n你可以访问 https://docs.hmcl.net/help.html 页面寻求帮助。
boot.manual_update=HMCL 在当前环境无法完成自动更新,请手动下载最新版本的 HMCL。\n是否前往下载页面?
-boot.unsupported_os.haiku=HMCL 因技术问题尚不支持 Haiku。\n若您仍希望在 Haiku 上游玩 Minecraft,请考虑使用其他启动器。
-boot.unsupported_os.os2=HMCL 永远不会支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
boot.message.error=错误
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
index 9ba9a13a2f..78c25c4149 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
@@ -18,7 +18,5 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能執行,但依然支援使用 Java 6~16 啟動遊戲。請安裝最新版本的 Java 再嘗試開啟 HMCL。\n你可以繼續保留舊版本 Java。HMCL 能夠識別與管理多個 Java,並會自動根據遊戲版本為你選取合適的 Java。
boot.manual_update=HMCL 在當前環境無法完成自動更新,請手動下載最新版本的 HMCL。\n是否前往下載頁面?
-boot.unsupported_os.haiku=HMCL 因技術問題並不支援 Haiku。\n若您仍希望在 Haiku 上遊玩 Minecraft,請考慮使用其他啟動器。
-boot.unsupported_os.os2=HMCL 永遠不會支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
boot.message.error=錯誤
From ee6ac76f4efba942c499f74095ef8b39ab6e0d9f Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Thu, 12 Feb 2026 03:31:15 +0800
Subject: [PATCH 06/12] update
---
HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
index ee21fd62df..f79d2ca183 100644
--- a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
+++ b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
@@ -25,7 +25,6 @@
import java.nio.file.Paths;
import java.security.CodeSource;
import java.security.ProtectionDomain;
-import java.util.Locale;
import java.util.ResourceBundle;
/**
@@ -109,7 +108,7 @@ static void showErrorAndExit(String[] args) {
}
private static void checkOperatingSystem() {
- String osName = System.getProperty("os.name", "").toLowerCase(Locale.ROOT);
+ String osName = System.getProperty("os.name", "").toLowerCase(java.util.Locale.ROOT);
String errorMessageKey = null;
if (osName.contains("haiku")) {
From fbe4574c58b71eaaa0ed4739ca61c0a8a4e00260 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Thu, 12 Feb 2026 13:16:28 +0800
Subject: [PATCH 07/12] update
---
HMCLBoot/src/main/resources/assets/lang/boot_zh.properties | 2 ++
HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties | 2 ++
2 files changed, 4 insertions(+)
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
index 6ac05b2c26..170187ad28 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
@@ -18,5 +18,7 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能运行,但依然支持使用 Java 6~16 启动游戏。请安装最新版本的 Java 再尝试启动 HMCL。\n你可以继续保留旧版本 Java。HMCL 能够识别与管理多个 Java,并会自动根据游戏版本为你选择合适的 Java。\n你可以访问 https://docs.hmcl.net/help.html 页面寻求帮助。
boot.manual_update=HMCL 在当前环境无法完成自动更新,请手动下载最新版本的 HMCL。\n是否前往下载页面?
+boot.unsupported_os.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.\n\nHMCL 因技术问题尚不支持 Haiku。\n若您仍希望在 Haiku 上游玩 Minecraft,请考虑使用其他启动器。
+boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.\n\nHMCL 永远不会支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
boot.message.error=错误
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
index 78c25c4149..24a998eadc 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
@@ -18,5 +18,7 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能執行,但依然支援使用 Java 6~16 啟動遊戲。請安裝最新版本的 Java 再嘗試開啟 HMCL。\n你可以繼續保留舊版本 Java。HMCL 能夠識別與管理多個 Java,並會自動根據遊戲版本為你選取合適的 Java。
boot.manual_update=HMCL 在當前環境無法完成自動更新,請手動下載最新版本的 HMCL。\n是否前往下載頁面?
+boot.unsupported_os.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.\n\nHMCL 因技術問題並不支援 Haiku。\n若您仍希望在 Haiku 上遊玩 Minecraft,請考慮使用其他啟動器。
+boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.\n\nHMCL 永遠不會支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
boot.message.error=錯誤
From d3a4069e0bf66262006a158d31c54ace0a391547 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Sat, 14 Feb 2026 22:01:21 +0800
Subject: [PATCH 08/12] move
---
.../java/org/jackhuang/hmcl/EntryPoint.java | 22 ++++++++++++++++++-
.../resources/assets/lang/I18N.properties | 2 ++
.../resources/assets/lang/I18N_zh.properties | 2 ++
.../assets/lang/I18N_zh_CN.properties | 2 ++
.../main/java/org/jackhuang/hmcl/Main.java | 22 -------------------
.../resources/assets/lang/boot.properties | 2 --
.../resources/assets/lang/boot_zh.properties | 2 --
.../assets/lang/boot_zh_Hant.properties | 2 --
8 files changed, 27 insertions(+), 29 deletions(-)
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
index 83623c86d0..fb3bbad3a3 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
@@ -46,9 +46,11 @@ public static void main(String[] args) {
System.getProperties().putIfAbsent("javafx.autoproxy.disable", "true");
System.getProperties().putIfAbsent("http.agent", "HMCL/" + Metadata.VERSION);
- createHMCLDirectories();
LOG.start(Metadata.HMCL_CURRENT_DIRECTORY.resolve("logs"));
+
+ checkOperatingSystem();
+ createHMCLDirectories();
setupJavaFXVMOptions();
if (OperatingSystem.CURRENT_OS == OperatingSystem.MACOS) {
@@ -223,6 +225,24 @@ private static void verifyJavaFX() {
}
}
+ private static void checkOperatingSystem() {
+ String osName = System.getProperty("os.name", "").toLowerCase(java.util.Locale.ROOT);
+
+ String errorMessageKey = null;
+ if (!osName.contains("haiku")) {
+ errorMessageKey = "fatal.unsupported_platform.haiku";
+ } else if (osName.contains("os/2") || osName.contains("os2")) {
+ errorMessageKey = "fatal.unsupported_platform.os2";
+ }
+
+ if (errorMessageKey != null) {
+ SwingUtils.initLookAndFeel();
+ LOG.error("Unsupported OS: " + System.getProperty("os.name", ""));
+ SwingUtils.showErrorDialog(i18n(errorMessageKey), i18n("message.error"));
+ exit(1);
+ }
+ }
+
private static void addEnableNativeAccess() {
if (JavaRuntime.CURRENT_VERSION > 21) {
try {
diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties
index 2f682895b8..61a6667be7 100644
--- a/HMCL/src/main/resources/assets/lang/I18N.properties
+++ b/HMCL/src/main/resources/assets/lang/I18N.properties
@@ -459,6 +459,8 @@ fatal.unsupported_platform.windows_arm64=Hello Minecraft! Launcher has provided
\n\
If you are using the Qualcomm platform, you may need to install the OpenGL Compatibility Pack before playing games.\n\
Click the link to navigate to the Microsoft Store and install the compatibility pack.
+fatal.unsupported_platform.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.
+fatal.unsupported_platform.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.
file=File
diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh.properties b/HMCL/src/main/resources/assets/lang/I18N_zh.properties
index 94b50e0302..35ab4f1be3 100644
--- a/HMCL/src/main/resources/assets/lang/I18N_zh.properties
+++ b/HMCL/src/main/resources/assets/lang/I18N_zh.properties
@@ -420,6 +420,8 @@ fatal.unsupported_platform=Minecraft 尚未對您的平臺提供完善支援,
fatal.unsupported_platform.loongarch=Hello Minecraft! Launcher 已為龍芯提供支援。\n如果遇到問題,你可以點擊右上角幫助按鈕進行求助。
fatal.unsupported_platform.macos_arm64=Hello Minecraft! Launcher 已為 Apple Silicon 平臺提供支援。使用 ARM 原生 Java 啟動遊戲以獲得更流暢的遊戲體驗。\n如果你在遊戲中遭遇問題,使用 x86-64 架構的 Java 啟動遊戲可能有更好的相容性。
fatal.unsupported_platform.windows_arm64=Hello Minecraft! Launcher 已為 Windows on Arm 平臺提供原生支援。如果你在遊戲中遭遇問題,請嘗試使用 x86 架構的 Java 啟動遊戲。\n\n如果你正在使用高通平臺,你可能需要安裝 OpenGL 相容包後才能進行遊戲。點擊連結前往 Microsoft Store 安裝相容包。
+fatal.unsupported_platform.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.\n\nHMCL 因技術問題並不支援 Haiku。\n若您仍希望在 Haiku 上遊玩 Minecraft,請考慮使用其他啟動器。
+fatal.unsupported_platform.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.\n\nHMCL 永遠不會支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
file=檔案
diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
index c85d174044..a9777bcdf9 100644
--- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
+++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
@@ -424,6 +424,8 @@ fatal.unsupported_platform=Minecraft 尚未对你的平台提供完善支持,
fatal.unsupported_platform.loongarch=Hello Minecraft! Launcher 已为龙芯提供支持。\n如果遇到问题,你可以点击右上角帮助按钮进行求助。
fatal.unsupported_platform.macos_arm64=Hello Minecraft! Launcher 已为 Apple Silicon 平台提供支持。使用 ARM 原生 Java 启动游戏以获得更流畅的游戏体验。\n如果你在游戏中遇到问题,使用 x86-64 架构的 Java 启动游戏可能有更好的兼容性。\n如遇到问题,你可以点击右上角帮助按钮进行求助。
fatal.unsupported_platform.windows_arm64=Hello Minecraft! Launcher 已为 Windows on Arm 平台提供原生支持。如果你在游戏中遇到问题,请尝试使用 x86 架构的 Java 启动游戏。\n如果你正在使用 高通 平台,你可能需要安装 OpenGL 兼容包 后才能进行游戏。点击链接前往 Microsoft Store 安装兼容包。\n如遇到问题,你可以点击右上角帮助按钮进行求助。
+fatal.unsupported_platform.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.\n\nHMCL 因技术问题尚不支持 Haiku。\n若您仍希望在 Haiku 上游玩 Minecraft,请考虑使用其他启动器。
+fatal.unsupported_platform.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.\n\nHMCL 永远不会支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
file=文件
diff --git a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
index f79d2ca183..adc1f208b5 100644
--- a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
+++ b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java
@@ -107,27 +107,6 @@ static void showErrorAndExit(String[] args) {
System.exit(1);
}
- private static void checkOperatingSystem() {
- String osName = System.getProperty("os.name", "").toLowerCase(java.util.Locale.ROOT);
-
- String errorMessageKey = null;
- if (osName.contains("haiku")) {
- errorMessageKey = "boot.unsupported_os.haiku";
- } else if (osName.contains("os/2") || osName.contains("os2")) {
- errorMessageKey = "boot.unsupported_os.os2";
- }
-
- if (errorMessageKey != null) {
- SwingUtils.initLookAndFeel();
- ResourceBundle resourceBundle = BootProperties.getResourceBundle();
- String errorTitle = resourceBundle.getString("boot.message.error");
- String errorMessage = resourceBundle.getString(errorMessageKey);
- System.err.println("Unsupported OS: " + System.getProperty("os.name", ""));
- SwingUtils.showErrorDialog(errorMessage, errorTitle);
- System.exit(1);
- }
- }
-
private static void checkDirectoryPath() {
String currentDir = System.getProperty("user.dir", "");
String jarPath = getThisJarPath();
@@ -163,7 +142,6 @@ private static String getThisJarPath() {
}
public static void main(String[] args) throws Throwable {
- checkOperatingSystem();
checkDirectoryPath();
if (getJavaFeatureVersion(System.getProperty("java.version")) >= MINIMUM_JAVA_VERSION) {
EntryPoint.main(args);
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot.properties b/HMCLBoot/src/main/resources/assets/lang/boot.properties
index 8dacc4fa21..c6b43070ef 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot.properties
@@ -18,7 +18,5 @@
boot.unsupported_java_version=HMCL requires Java 17 or later to run, but still supports launching games with Java 6~16. Please install the latest version of Java and try opening HMCL again.\nYou can keep your old version of Java. HMCL can detect and manage multiple Java installations, and will automatically select the appropriate Java version for your game.
boot.manual_update=HMCL cannot complete automatic updates in the current environment. Please download the latest version of HMCL manually.\nWould you like to go to the download page?
-boot.unsupported_os.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.
-boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.
boot.message.error=Error
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
index 170187ad28..6ac05b2c26 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties
@@ -18,7 +18,5 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能运行,但依然支持使用 Java 6~16 启动游戏。请安装最新版本的 Java 再尝试启动 HMCL。\n你可以继续保留旧版本 Java。HMCL 能够识别与管理多个 Java,并会自动根据游戏版本为你选择合适的 Java。\n你可以访问 https://docs.hmcl.net/help.html 页面寻求帮助。
boot.manual_update=HMCL 在当前环境无法完成自动更新,请手动下载最新版本的 HMCL。\n是否前往下载页面?
-boot.unsupported_os.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.\n\nHMCL 因技术问题尚不支持 Haiku。\n若您仍希望在 Haiku 上游玩 Minecraft,请考虑使用其他启动器。
-boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.\n\nHMCL 永远不会支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
boot.message.error=错误
\ No newline at end of file
diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
index 24a998eadc..78c25c4149 100644
--- a/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
+++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh_Hant.properties
@@ -18,7 +18,5 @@
boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能執行,但依然支援使用 Java 6~16 啟動遊戲。請安裝最新版本的 Java 再嘗試開啟 HMCL。\n你可以繼續保留舊版本 Java。HMCL 能夠識別與管理多個 Java,並會自動根據遊戲版本為你選取合適的 Java。
boot.manual_update=HMCL 在當前環境無法完成自動更新,請手動下載最新版本的 HMCL。\n是否前往下載頁面?
-boot.unsupported_os.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.\n\nHMCL 因技術問題並不支援 Haiku。\n若您仍希望在 Haiku 上遊玩 Minecraft,請考慮使用其他啟動器。
-boot.unsupported_os.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.\n\nHMCL 永遠不會支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
boot.message.error=錯誤
From 79e14c975cafb991c7cd54542189fee92481f3d0 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Sat, 14 Feb 2026 22:10:58 +0800
Subject: [PATCH 09/12] debug logic update
---
HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
index fb3bbad3a3..9b02fe8e64 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
@@ -229,7 +229,7 @@ private static void checkOperatingSystem() {
String osName = System.getProperty("os.name", "").toLowerCase(java.util.Locale.ROOT);
String errorMessageKey = null;
- if (!osName.contains("haiku")) {
+ if (osName.contains("haiku")) {
errorMessageKey = "fatal.unsupported_platform.haiku";
} else if (osName.contains("os/2") || osName.contains("os2")) {
errorMessageKey = "fatal.unsupported_platform.os2";
From f376c88bf17a136fea51765df665cd26adc9dba5 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Sun, 15 Feb 2026 22:27:04 +0800
Subject: [PATCH 10/12] update
---
HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
index 9b02fe8e64..7bbfc07291 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
@@ -228,17 +228,17 @@ private static void verifyJavaFX() {
private static void checkOperatingSystem() {
String osName = System.getProperty("os.name", "").toLowerCase(java.util.Locale.ROOT);
- String errorMessageKey = null;
+ String errorMessage = null;
if (osName.contains("haiku")) {
- errorMessageKey = "fatal.unsupported_platform.haiku";
+ errorMessage = i18n("fatal.unsupported_platform.haiku");
} else if (osName.contains("os/2") || osName.contains("os2")) {
- errorMessageKey = "fatal.unsupported_platform.os2";
+ errorMessage = i18n("fatal.unsupported_platform.os2");
}
- if (errorMessageKey != null) {
+ if (errorMessage != null) {
SwingUtils.initLookAndFeel();
LOG.error("Unsupported OS: " + System.getProperty("os.name", ""));
- SwingUtils.showErrorDialog(i18n(errorMessageKey), i18n("message.error"));
+ SwingUtils.showErrorDialog(errorMessage, i18n("message.error"));
exit(1);
}
}
From 7db2904d38d307d3d4c47138726cd6120ebb6244 Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Tue, 17 Feb 2026 23:46:29 +0800
Subject: [PATCH 11/12] update
---
HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java | 7 ++-----
HMCL/src/main/resources/assets/lang/I18N.properties | 1 -
HMCL/src/main/resources/assets/lang/I18N_zh.properties | 1 -
HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties | 1 -
4 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
index 7bbfc07291..0e69423866 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
@@ -46,11 +46,9 @@ public static void main(String[] args) {
System.getProperties().putIfAbsent("javafx.autoproxy.disable", "true");
System.getProperties().putIfAbsent("http.agent", "HMCL/" + Metadata.VERSION);
+ createHMCLDirectories();
LOG.start(Metadata.HMCL_CURRENT_DIRECTORY.resolve("logs"));
-
- checkOperatingSystem();
- createHMCLDirectories();
setupJavaFXVMOptions();
if (OperatingSystem.CURRENT_OS == OperatingSystem.MACOS) {
@@ -61,6 +59,7 @@ public static void main(String[] args) {
checkJavaFX();
verifyJavaFX();
+ checkOperatingSystem();
addEnableNativeAccess();
enableUnsafeMemoryAccess();
@@ -231,8 +230,6 @@ private static void checkOperatingSystem() {
String errorMessage = null;
if (osName.contains("haiku")) {
errorMessage = i18n("fatal.unsupported_platform.haiku");
- } else if (osName.contains("os/2") || osName.contains("os2")) {
- errorMessage = i18n("fatal.unsupported_platform.os2");
}
if (errorMessage != null) {
diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties
index 61a6667be7..ef862e091b 100644
--- a/HMCL/src/main/resources/assets/lang/I18N.properties
+++ b/HMCL/src/main/resources/assets/lang/I18N.properties
@@ -460,7 +460,6 @@ fatal.unsupported_platform.windows_arm64=Hello Minecraft! Launcher has provided
If you are using the Qualcomm platform, you may need to install the OpenGL Compatibility Pack before playing games.\n\
Click the link to navigate to the Microsoft Store and install the compatibility pack.
fatal.unsupported_platform.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.
-fatal.unsupported_platform.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.
file=File
diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh.properties b/HMCL/src/main/resources/assets/lang/I18N_zh.properties
index 35ab4f1be3..26787968b2 100644
--- a/HMCL/src/main/resources/assets/lang/I18N_zh.properties
+++ b/HMCL/src/main/resources/assets/lang/I18N_zh.properties
@@ -421,7 +421,6 @@ fatal.unsupported_platform.loongarch=Hello Minecraft! Launcher 已為龍芯提
fatal.unsupported_platform.macos_arm64=Hello Minecraft! Launcher 已為 Apple Silicon 平臺提供支援。使用 ARM 原生 Java 啟動遊戲以獲得更流暢的遊戲體驗。\n如果你在遊戲中遭遇問題,使用 x86-64 架構的 Java 啟動遊戲可能有更好的相容性。
fatal.unsupported_platform.windows_arm64=Hello Minecraft! Launcher 已為 Windows on Arm 平臺提供原生支援。如果你在遊戲中遭遇問題,請嘗試使用 x86 架構的 Java 啟動遊戲。\n\n如果你正在使用高通平臺,你可能需要安裝 OpenGL 相容包後才能進行遊戲。點擊連結前往 Microsoft Store 安裝相容包。
fatal.unsupported_platform.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.\n\nHMCL 因技術問題並不支援 Haiku。\n若您仍希望在 Haiku 上遊玩 Minecraft,請考慮使用其他啟動器。
-fatal.unsupported_platform.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.\n\nHMCL 永遠不會支援 OS/2 及其 OEM 版本。\n若您想要遊玩 Minecraft,請使用其他主流作業系統。
file=檔案
diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
index a9777bcdf9..2799078adf 100644
--- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
+++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
@@ -425,7 +425,6 @@ fatal.unsupported_platform.loongarch=Hello Minecraft! Launcher 已为龙芯提
fatal.unsupported_platform.macos_arm64=Hello Minecraft! Launcher 已为 Apple Silicon 平台提供支持。使用 ARM 原生 Java 启动游戏以获得更流畅的游戏体验。\n如果你在游戏中遇到问题,使用 x86-64 架构的 Java 启动游戏可能有更好的兼容性。\n如遇到问题,你可以点击右上角帮助按钮进行求助。
fatal.unsupported_platform.windows_arm64=Hello Minecraft! Launcher 已为 Windows on Arm 平台提供原生支持。如果你在游戏中遇到问题,请尝试使用 x86 架构的 Java 启动游戏。\n如果你正在使用 高通 平台,你可能需要安装 OpenGL 兼容包 后才能进行游戏。点击链接前往 Microsoft Store 安装兼容包。\n如遇到问题,你可以点击右上角帮助按钮进行求助。
fatal.unsupported_platform.haiku=HMCL doesn't support Haiku due to some technical issues.\nIf you still want to play Minecraft on Haiku, consider other launchers.\n\nHMCL 因技术问题尚不支持 Haiku。\n若您仍希望在 Haiku 上游玩 Minecraft,请考虑使用其他启动器。
-fatal.unsupported_platform.os2=HMCL will never support OS/2 or its OEM versions.\nIf you want to play Minecraft, use other popular OS.\n\nHMCL 永远不会支持 OS/2 及其 OEM 版本。\n若您想要游玩 Minecraft,请使用其他主流操作系统。
file=文件
From 71d750df5a3788e02d58429713b625f86a75560b Mon Sep 17 00:00:00 2001
From: Damon Lu <59256766+WhatDamon@users.noreply.github.com>
Date: Wed, 18 Feb 2026 00:25:40 +0800
Subject: [PATCH 12/12] update
---
HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
index 0e69423866..c7f80bcb08 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/EntryPoint.java
@@ -57,9 +57,12 @@ public static void main(String[] args) {
initIcon();
}
+ if (!Boolean.getBoolean("hmcl.bypass.osheck")) {
+ checkOperatingSystem();
+ }
+
checkJavaFX();
verifyJavaFX();
- checkOperatingSystem();
addEnableNativeAccess();
enableUnsafeMemoryAccess();