(SOLVED) Minecraft won't start on Mint 19 Cinnamon

Anything related to gaming on Linux Mint including game discussion or questions concerning Steam or Wine.
Forum rules
Before you post please read how to get help
Post Reply
davonuk
Level 1
Level 1
Posts: 27
Joined: Tue Mar 29, 2016 8:34 pm

(SOLVED) Minecraft won't start on Mint 19 Cinnamon

Post by davonuk » Sat Jun 30, 2018 6:56 am

I've just upgraded from Linux Mint 18.3 to 19 (Cinnamon edition).
I noticed that the PPA I used to use for installing Minecraft won't run on this version of Mint,
I saw the game was now in the software manager, and installed it from there.
When I try to run it though, I find the installer comes up with errors and won't run the game.

The icon at the bottom says 'Play Offline', and the main window says 'Loading page'.
It does log into my Minecraft account successfully.
When I click the' Play Offline' button, the launcher closes but the main game won't run.
This is the text from the launcher log:

Code: Select all

[11:51:26 INFO]: Minecraft Launcher 1.6.89-j (through bootstrap 5) started on linux...
[11:51:26 INFO]: Current time is Jun 30, 2018, 11:51:26 AM
[11:51:26 INFO]: System.getProperty('os.name') == 'Linux'
[11:51:26 INFO]: System.getProperty('os.version') == '4.15.0-23-generic'
[11:51:26 INFO]: System.getProperty('os.arch') == 'amd64'
[11:51:26 INFO]: System.getProperty('java.version') == '10.0.1'
[11:51:26 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation'
[11:51:26 INFO]: System.getProperty('sun.arch.data.model') == '64'
[11:51:26 INFO]: proxy == DIRECT
[11:51:27 INFO]: Refreshing local version list...
[11:51:27 INFO]: Refreshing remote version list...
[11:51:27 ERROR]: Unexpected exception refreshing version list
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
	at java.base/sun.security.ssl.Alerts.getSSLException(Alerts.java:214) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1974) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1926) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1909) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1436) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:?]
	at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567) ~[?:?]
	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:?]
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581) ~[?:?]
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509) ~[?:?]
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:245) ~[?:?]
	at com.mojang.launcher.Http.performGet(Http.java:54) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.updater.RemoteVersionList.getContent(RemoteVersionList.java:60) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.updater.RemoteVersionList.refreshVersions(RemoteVersionList.java:42) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.updater.MinecraftVersionManager.refreshVersions(MinecraftVersionManager.java:62) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.Launcher$2.run(Launcher.java:177) [launcher.jar:1.6.89-j]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
	at java.base/sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:89) ~[?:?]
	at java.base/sun.security.validator.Validator.getInstance(Validator.java:181) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:330) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:180) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:192) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:133) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.checkServerCerts(ClientHandshaker.java:1947) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.certificateStatus(ClientHandshaker.java:1798) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:276) ~[?:?]
	at java.base/sun.security.ssl.Handshaker.processLoop(Handshaker.java:1098) ~[?:?]
	at java.base/sun.security.ssl.Handshaker.processRecord(Handshaker.java:1026) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1137) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1074) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1402) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1429) ~[?:?]
	... 16 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
	at java.base/java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) ~[?:?]
	at java.base/java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120) ~[?:?]
	at java.base/java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104) ~[?:?]
	at java.base/sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:86) ~[?:?]
	at java.base/sun.security.validator.Validator.getInstance(Validator.java:181) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:330) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:180) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:192) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:133) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.checkServerCerts(ClientHandshaker.java:1947) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.certificateStatus(ClientHandshaker.java:1798) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:276) ~[?:?]
	at java.base/sun.security.ssl.Handshaker.processLoop(Handshaker.java:1098) ~[?:?]
	at java.base/sun.security.ssl.Handshaker.processRecord(Handshaker.java:1026) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1137) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1074) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1402) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1429) ~[?:?]
	... 16 more
[11:51:27 INFO]: Loaded 1 profile(s); selected 'davonuk'
[11:51:27 INFO]: Refreshing auth...
[11:51:27 INFO]: Logging in with access token
[11:51:27 ERROR]: Exception whilst logging into profile
com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:71) ~[launcher.jar:1.6.89-j]
	at com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication.logInWithToken(YggdrasilUserAuthentication.java:132) ~[launcher.jar:1.6.89-j]
	at com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication.logIn(YggdrasilUserAuthentication.java:55) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.Launcher.ensureLoggedIn(Launcher.java:259) [launcher.jar:1.6.89-j]
	at net.minecraft.launcher.Launcher$2.run(Launcher.java:213) [launcher.jar:1.6.89-j]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
	at java.base/sun.security.ssl.Alerts.getSSLException(Alerts.java:214) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1974) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1926) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1909) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1436) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:?]
	at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567) ~[?:?]
	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:?]
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1356) ~[?:?]
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1331) ~[?:?]
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:241) ~[?:?]
	at com.mojang.authlib.HttpAuthenticationService.performPostRequest(HttpAuthenticationService.java:73) ~[launcher.jar:1.6.89-j]
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54) ~[launcher.jar:1.6.89-j]
	... 9 more
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
	at java.base/sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:89) ~[?:?]
	at java.base/sun.security.validator.Validator.getInstance(Validator.java:181) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:330) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:180) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:192) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:133) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.checkServerCerts(ClientHandshaker.java:1947) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.certificateStatus(ClientHandshaker.java:1798) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:276) ~[?:?]
	at java.base/sun.security.ssl.Handshaker.processLoop(Handshaker.java:1098) ~[?:?]
	at java.base/sun.security.ssl.Handshaker.processRecord(Handshaker.java:1026) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1137) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1074) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1402) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1429) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:?]
	at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567) ~[?:?]
	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:?]
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1356) ~[?:?]
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1331) ~[?:?]
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:241) ~[?:?]
	at com.mojang.authlib.HttpAuthenticationService.performPostRequest(HttpAuthenticationService.java:73) ~[launcher.jar:1.6.89-j]
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54) ~[launcher.jar:1.6.89-j]
	... 9 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
	at java.base/java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) ~[?:?]
	at java.base/java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120) ~[?:?]
	at java.base/java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104) ~[?:?]
	at java.base/sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:86) ~[?:?]
	at java.base/sun.security.validator.Validator.getInstance(Validator.java:181) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:330) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:180) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:192) ~[?:?]
	at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:133) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.checkServerCerts(ClientHandshaker.java:1947) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.certificateStatus(ClientHandshaker.java:1798) ~[?:?]
	at java.base/sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:276) ~[?:?]
	at java.base/sun.security.ssl.Handshaker.processLoop(Handshaker.java:1098) ~[?:?]
	at java.base/sun.security.ssl.Handshaker.processRecord(Handshaker.java:1026) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1137) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1074) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1402) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1429) ~[?:?]
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:?]
	at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567) ~[?:?]
	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:?]
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1356) ~[?:?]
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1331) ~[?:?]
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:241) ~[?:?]
	at com.mojang.authlib.HttpAuthenticationService.performPostRequest(HttpAuthenticationService.java:73) ~[launcher.jar:1.6.89-j]
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54) ~[launcher.jar:1.6.89-j]
	... 9 more
Last edited by davonuk on Sun Jul 01, 2018 3:26 am, edited 1 time in total.

Kilo
Level 1
Level 1
Posts: 12
Joined: Wed Jun 27, 2018 10:25 am

Re: Minecraft won't start on Mint 19 Cinnamon

Post by Kilo » Sat Jun 30, 2018 9:47 am

Try downloading the official .jar from minecraft.net. Make sure you Right Click the Jar >> Permissions >> Mark as Executable. Open terminal in the location of the jar and type 'java -jar Minecraft.jar'. Hopefully this will fix your issue.

davonuk
Level 1
Level 1
Posts: 27
Joined: Tue Mar 29, 2016 8:34 pm

Re: Minecraft won't start on Mint 19 Cinnamon

Post by davonuk » Sat Jun 30, 2018 10:26 am

I tried that, but even executing the jar file throws up the same error.

uberdorf
Level 4
Level 4
Posts: 232
Joined: Tue Sep 01, 2015 10:15 am

Re: Minecraft won't start on Mint 19 Cinnamon

Post by uberdorf » Sat Jun 30, 2018 5:32 pm

I'm surprised that you are using Java 10 for minecraft. I know java 8 works with minecraft since that is what I use. Did it work with java 10 in 18.3?

Anyways, I googled the error it is throwing and came across this possible solution
https://stackoverflow.com/questions/678 ... -non-empty
what someone said worked for them is to remove the java certificates and then reconfigure with the commands below

Code: Select all

sudo rm /etc/ssl/certs/java/cacerts

Code: Select all

sudo update-ca-certificates -f

davonuk
Level 1
Level 1
Posts: 27
Joined: Tue Mar 29, 2016 8:34 pm

Re: Minecraft won't start on Mint 19 Cinnamon

Post by davonuk » Sun Jul 01, 2018 3:25 am

Yes, it used to run wonderfully under 18.3 with JDK 8 installed. LM19 seems to use v10 of JDK.
I used those two commands you suggested at the bottom and it worked!
Thanks so much, I have Minecraft running on my system once more :)

Erm, yes and no. I have 2 machines I upgraded from 18.3 to 19. The game was working on my desktop PC but not my laptop.
Finally, I discovered the source of the issue myself... I actually had a certs file in the home folder, so naturally the game was going to that first.
I deleted the file, and now the game works on both machines.

Post Reply

Return to “Gaming on Linux Mint”