Eu também tive o mesmo problema e foi resolvido com o seguinte comando:
sudo snap install minecraft
Para iniciar o Minecraft, execute o seguinte comando:
minecraft
Eu fiquei perplexo com esse problema de Java por cerca de 4 dias agora. Eu recentemente atualizei para o Kubuntu 18.04 e estou tentando fazer com que o Minecraft funcione sem sucesso. Aqui estão minhas mensagens de erro:
nathan@Corbit:~/Minecraft$ sudo java -jar Minecraft.jar
Bootstrap (v5)
Current time is May 10, 2018 7:05:05 AM
System.getProperty('os.name') == 'Linux'
System.getProperty('os.version') == '4.15.0-21-generic'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.8.0_171'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '64''
'Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 2/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 3/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 4/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 5/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 6/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 7/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 8/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 9/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 10/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Unable to download remote file. Check your internet connection/proxy settings.
FATAL ERROR: net.minecraft.bootstrap.FatalBootstrapError: Unable to download while being forced
at net.minecraft.bootstrap.Bootstrap.execute(Bootstrap.java:95)
at net.minecraft.bootstrap.Bootstrap.main(Bootstrap.java:381)
Eu tentei atualizar meus certificados, verifiquei que a porta 25565 está aberta, fez uma exceção para essa porta no UFW, embora eu tenha desabilitado, usei várias versões do OPENjdk e Oracle, usei diversas versões arquivadas diferentes do Minecraft.jar , tentei rodar como root (como você pode ver), mas não cheguei a lugar nenhum.
Eu também tive o mesmo problema e foi resolvido com o seguinte comando:
sudo snap install minecraft
Para iniciar o Minecraft, execute o seguinte comando:
minecraft
Para resolver o problema no kubuntu 18.04 eu fiz:
sudo rm /etc/ssl/certs/java/cacerts
e depois:
sudo update-ca-certificates -f
(não execute java com sudo
)