mojira.dev
MC-193384

Game crashes on world load when using integrated Java: Could not initialize class javax.crypto.JceSecurityManager

The bug

Game crashes when the world is loaded at 100%. It says "Saving world" and exits to a crash report. It used to work.

No antivirus program installed. Changing the firewall setting doesn't work. Did a clean install on Minecraft. Updated Java, reinstalled Java, removed Java with no change.

Potential cause

The user who originally reported this issue was able to fix it by using a separate installation of Java instead of the built-in one.

Crash report

1.16.1\: [^crash-2020-07-03_11.29.43-client.txt]

Description: mouseClicked event handler

java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurityManager
	at javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2587)
	at javax.crypto.Cipher.getMaxAllowedKeyLength(Cipher.java:2611)
	at sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:548)
	at sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:527)
	at sun.security.ssl.CipherSuite.isAvailable(CipherSuite.java:194)
	at sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(SSLContextImpl.java:346)
	at sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContextImpl.java:304)
	at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:626)
	at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:537)
	at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:72)
	at sun.net.www.protocol.https.HttpsClient.createSocket(HttpsClient.java:409)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:162)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1104)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:998)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at io.netty.bootstrap.Bootstrap.<clinit>(Bootstrap.java:348)
	at me.a(SourceFile:316)
	at dlx.a(SourceFile:1838)
	at dlx.a(SourceFile:1702)
	at dty.n(SourceFile:287)
	at dty.b(SourceFile:226)
	at dty$$Lambda$2978/178898610.onPress(Unknown Source)
	at dni.b(SourceFile:33)
	at dnc.a(SourceFile:16)
	at dng.a(SourceFile:149)
	at doe.a(SourceFile:27)
	at dly.b(SourceFile:92)
	at dly$$Lambda$2875/762121462.run(Unknown Source)
	at dqs.a(SourceFile:431)
	at dly.a(SourceFile:92)
	at dly.c(SourceFile:162)
	at dly$$Lambda$2874/1224339926.run(Unknown Source)
	at amn.execute(SourceFile:94)
	at dly.b(SourceFile:162)
	at dly$$Lambda$2223/314991429.invoke(Unknown Source)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:109)
	at dgy.e(SourceFile:308)
	at dlx.e(SourceFile:1041)
	at dlx.e(SourceFile:654)
	at net.minecraft.client.main.Main.main(SourceFile:215)

Attachments

Comments 2

Please check if using the latest Java version fixes this issue: https://www.java.com/en/download
You need to change the "Java Executable" path on the launcher to not use the bundled one.

Solved! Thank you!

Mihail

(Unassigned)

Plausible

Crash

1.16.1

Retrieved