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
  • 72,312
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,693
3

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

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