HMCL-dev / HMCL

A Minecraft Launcher which is multi-functional, cross-platform and popular
https://hmcl.huangyuhui.net
GNU General Public License v3.0
7.03k stars 684 forks source link

使用java11.0.1启动HMCL-3.2.149 #673

Closed xingyangjun closed 4 years ago

xingyangjun commented 4 years ago

-- System Details -- Operating System: Linux 4.19.79-OPENFANS+20191013-v8 Java Version: 11.0.6, Debian Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Debian JVM Max Memory: 998244352 JVM Total Memory: 75497472 JVM Free Memory: 20441568

-- System Details -- Operating System: Linux 4.19.79-OPENFANS+20191013-v8 Java Version: 11.0.6, Debian Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Debian JVM Max Memory: 998244352 JVM Total Memory: 75497472 JVM Free Memory: 20441568

[19:34:16] [org.jackhuang.hmcl.util.CrashReporter.uncaughtException/SEVERE] Uncaught exception in thread Thread-4 java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848) at java.base/java.security.Provider$Service.newInstance(Provider.java:1824) at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236) at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164) at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168) at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99) at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123) at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335) at java.base/javax.net.ssl.HttpsURLConnection.(HttpsURLConnection.java:292) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.(HttpsURLConnectionImpl.java:100) at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62) at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57) at java.base/java.net.URL.openConnection(URL.java:1074) at org.jackhuang.hmcl.util.io.NetworkUtils.createConnection(NetworkUtils.java:58) at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:154) at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:148) at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:144) at org.jackhuang.hmcl.util.CrashReporter.lambda$reportToServer$1(CrashReporter.java:145) at java.base/java.lang.Thread.run(Thread.java:834) [19:34:16] [org.jackhuang.hmcl.util.CrashReporter.uncaughtException/SEVERE] ---- Hello Minecraft! Crash Report ---- Version: 3.2.149 Time: 2020-02-16 19:34:16 Thread: Thread[Thread-4,5,main]

Content: java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848) at java.base/java.security.Provider$Service.newInstance(Provider.java:1824) at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236) at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164) at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168) at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99) at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123) at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335) at java.base/javax.net.ssl.HttpsURLConnection.(HttpsURLConnection.java:292) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.(HttpsURLConnectionImpl.java:100) at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62) at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57) at java.base/java.net.URL.openConnection(URL.java:1074) at org.jackhuang.hmcl.util.io.NetworkUtils.createConnection(NetworkUtils.java:58) at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:154) at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:148) at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:144) at org.jackhuang.hmcl.util.CrashReporter.lambda$reportToServer$1(CrashReporter.java:145) at java.base/java.lang.Thread.run(Thread.java:834)

-- System Details -- Operating System: Linux 4.19.79-OPENFANS+20191013-v8 Java Version: 11.0.6, Debian Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Debian JVM Max Memory: 998244352 JVM Total Memory: 75497472 JVM Free Memory: 19493888

[19:34:16] [org.jackhuang.hmcl.util.CrashReporter.checkThrowable/SEVERE] 请确认 Hello Minecraft! Launcher 本体是否完整,或更新您的 Java。 [19:34:17] [org.jackhuang.hmcl.util.CrashReporter.checkThrowable/SEVERE] Unable to show message java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-4 at javafx.graphics/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:291) at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:424) at javafx.graphics/javafx.stage.Stage.(Stage.java:254) at javafx.graphics/javafx.stage.Stage.(Stage.java:240) at javafx.controls/javafx.scene.control.HeavyweightDialog$1.(HeavyweightDialog.java:52) at javafx.controls/javafx.scene.control.HeavyweightDialog.(HeavyweightDialog.java:52) at javafx.controls/javafx.scene.control.Dialog.(Dialog.java:267) at javafx.controls/javafx.scene.control.Alert.(Alert.java:245) at org.jackhuang.hmcl.util.CrashReporter.checkThrowable(CrashReporter.java:75) at org.jackhuang.hmcl.util.CrashReporter.uncaughtException(CrashReporter.java:125) at java.base/java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1055) at java.base/java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1050) at java.base/java.lang.Thread.dispatchUncaughtException(Thread.java:2001) [19:38:08] [org.jackhuang.hmcl.ui.construct.Navigator.navigate/INFO] Navigate to SettingsPage@d19e51c [19:38:11] [org.jackhuang.hmcl.ui.construct.Navigator.navigate/INFO] Navigate to ProfileList@1b6fda81 [19:38:15] [org.jackhuang.hmcl.ui.construct.Navigator.navigate/INFO] Navigate to SettingsPage@d19e51c [19:38:30] [org.jackhuang.hmcl.ui.SettingsPage.lambda$onExportLogs$9/INFO] Exporting logs to /home/pi/Minecraft/hmcl-exported-logs-2020-02-16T19-38-30.log

TSStudio commented 4 years ago

请安装openjfx 移步#509

xingyangjun commented 4 years ago

请安装openjfx 移步#509

我已经安装 java --module-path /usr/share/openjfx/lib --add-modules=javafx.base --add-modules=javafx.fxml --add-modules=javafx.graphics --add-modules=javafx.media --add-modules=javafx.swing --add-modules=javafx.web --add-modules=javafx.controls -jar HMCL-3.2.149.jar image

huanghongxun commented 4 years ago
java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123)
at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335)
at java.base/javax.net.ssl.HttpsURLConnection.(HttpsURLConnection.java:292)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.(HttpsURLConnectionImpl.java:100)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
at java.base/java.net.URL.openConnection(URL.java:1074)
at org.jackhuang.hmcl.util.io.NetworkUtils.createConnection(NetworkUtils.java:58)
at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:154)
at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:148)
at org.jackhuang.hmcl.util.io.NetworkUtils.doPost(NetworkUtils.java:144)
at org.jackhuang.hmcl.util.CrashReporter.lambda$reportToServer$1(CrashReporter.java:145)
at java.base/java.lang.Thread.run(Thread.java:834)

可见是你的 JVM 有问题