5

Trying to install Minecraft on 18.04 and I get the following error.

OpenJDK 64-Bit Server VM warning:
Option UseConcMarkSweepGC was deprecated in version 9.0
 and will likely be removed in a future release.
Unrecognized VM option 'CMSIncrementalMode'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Any suggestions?

Zanna
  • 70,465
xEth0sx
  • 59

4 Answers4

6

I edited my profile. I changed the JVM Arguments from

-Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

to

-Xmx1G -XX:+UseConcMarkSweepGC -XX:-UseAdaptiveSizePolicy -Xmn128M

Then Minecraft worked for me.

(I got the Idea from: JVM errors when running minecraft)

Boba Fit
  • 1,633
3

Replace openjdk-jre-11 with openjdk-jre-8. Minecraft will not run on newer java versions.

  • 1
    While this may be the case, the OP did not say that were using Java 8 or higher. Also, Java 11 does not exist yet. – fosslinux Apr 30 '18 at 20:39
  • @ubashu Despite the weird nomenclature the openjdk-11-jdk package exists in Ubuntu 18.04. – karel May 01 '18 at 00:09
  • @karel Why is this? – fosslinux May 01 '18 at 06:08
  • It was explained to me in a blog that I forgot which blog it was that Ubuntu 18.04 will launch a new openjdk-10-jdk package when it becomes available, so it can't use openjdk-10-jdk as a package name because that package name has already been reserved. – karel May 01 '18 at 06:11
  • You can add that as well mod's for minecraft are made using java 8, beside that this answer is right and java jre/jdk 8 can be installed alongside the default java 10.0.1 on Ubuntu 18.04 LTS. It is enough to have the launcher profile use java 8 to start minecraft, starting the launcher with java 10 is no problem at all. – Videonauth May 02 '18 at 20:03
2

Install MC Installer -

sudo snap install mc-installer

No need to go through JDK/JVM hassle.

0

just delete all Unrecognized VM options from the JVM Arguments... worked for me