diff --git a/HMCL/build.gradle.kts b/HMCL/build.gradle.kts index 2d002d65c..dc7d87369 100644 --- a/HMCL/build.gradle.kts +++ b/HMCL/build.gradle.kts @@ -96,8 +96,8 @@ fun attachSignature(jar: File) { } tasks.withType { - sourceCompatibility = "11" - targetCompatibility = "11" + sourceCompatibility = "17" + targetCompatibility = "17" } tasks.checkstyleMain { diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/Metadata.java b/HMCL/src/main/java/org/jackhuang/hmcl/Metadata.java index 4cb764df2..7d54402df 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/Metadata.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/Metadata.java @@ -41,7 +41,7 @@ public final class Metadata { public static final String TITLE = NAME + " " + VERSION; public static final String FULL_TITLE = FULL_NAME + " v" + VERSION; - public static final int MINIMUM_REQUIRED_JAVA_VERSION = 11; + public static final int MINIMUM_REQUIRED_JAVA_VERSION = 17; public static final int MINIMUM_SUPPORTED_JAVA_VERSION = 17; public static final int RECOMMENDED_JAVA_VERSION = 21; diff --git a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java index 073592afa..22e313379 100644 --- a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java +++ b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java @@ -23,7 +23,7 @@ import org.jackhuang.hmcl.util.SwingUtils; * @author Glavo */ public final class Main { - private static final int MINIMUM_JAVA_VERSION = 11; + private static final int MINIMUM_JAVA_VERSION = 17; private Main() { } diff --git a/HMCLBoot/src/main/resources/assets/lang/boot.properties b/HMCLBoot/src/main/resources/assets/lang/boot.properties index e0432f66e..effe9bbc3 100644 --- a/HMCLBoot/src/main/resources/assets/lang/boot.properties +++ b/HMCLBoot/src/main/resources/assets/lang/boot.properties @@ -16,4 +16,4 @@ # along with this program. If not, see . # -boot.unsupported_java_version=HMCL requires Java 11 or later to run, but still supports launching games with Java 8. 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.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. diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties index a03782ace..b67fce5d7 100644 --- a/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties +++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh.properties @@ -16,4 +16,4 @@ # along with this program. If not, see . # -boot.unsupported_java_version=HMCL 需要 Java 11 或更高版本才能執行,但依然支援使用 Java 8 啟動遊戲。請安裝最新版本的 Java 再嘗試開啟 HMCL。\n你可以繼續保留舊版本 Java。HMCL 能夠識別與管理多個 Java,並會自動根據遊戲版本為你選取合適的 Java。 +boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能執行,但依然支援使用 Java 6~16 啟動遊戲。請安裝最新版本的 Java 再嘗試開啟 HMCL。\n你可以繼續保留舊版本 Java。HMCL 能夠識別與管理多個 Java,並會自動根據遊戲版本為你選取合適的 Java。 diff --git a/HMCLBoot/src/main/resources/assets/lang/boot_zh_CN.properties b/HMCLBoot/src/main/resources/assets/lang/boot_zh_CN.properties index 31a2ae08a..a65e7488d 100644 --- a/HMCLBoot/src/main/resources/assets/lang/boot_zh_CN.properties +++ b/HMCLBoot/src/main/resources/assets/lang/boot_zh_CN.properties @@ -16,4 +16,4 @@ # along with this program. If not, see . # -boot.unsupported_java_version=HMCL 需要 Java 11 或更高版本才能运行,但依然支持使用 Java 8 启动游戏。请安装最新版本的 Java 再尝试启动 HMCL。\n你可以继续保留旧版本 Java。HMCL 能够识别与管理多个 Java,并会自动根据游戏版本为你选择合适的 Java。\n你可以访问 https://docs.hmcl.net/help.html 页面寻求帮助。 +boot.unsupported_java_version=HMCL 需要 Java 17 或更高版本才能运行,但依然支持使用 Java 6~16 启动游戏。请安装最新版本的 Java 再尝试启动 HMCL。\n你可以继续保留旧版本 Java。HMCL 能够识别与管理多个 Java,并会自动根据游戏版本为你选择合适的 Java。\n你可以访问 https://docs.hmcl.net/help.html 页面寻求帮助。 diff --git a/HMCLCore/build.gradle.kts b/HMCLCore/build.gradle.kts index ab5f9d807..e1a8c9212 100644 --- a/HMCLCore/build.gradle.kts +++ b/HMCLCore/build.gradle.kts @@ -3,8 +3,8 @@ plugins { } tasks.withType { - sourceCompatibility = "11" - targetCompatibility = "11" + sourceCompatibility = "17" + targetCompatibility = "17" } tasks.compileJava {