JDK Crash when attempting to run Minecraft on Ubuntu 18.04

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?


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)


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


Install MC Installer -

sudo snap install mc-installer

No need to go through JDK/JVM hassle.