Minecraft Error Message!

Anything related to gaming on Linux Mint including game discussion or questions concerning Steam or Wine.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Gaming Fool

Minecraft Error Message!

Post by Gaming Fool »

Hello, I'm quite new to Linux and I have a lot to ask! First off I'm trying to download Minecraft on my computer. I love the game and really want to get into playing, but I have an issue. I have the download for Minecraft and I have the launcher, but every time I try to launch the game it gives me an error message!

Here is the error message:

"could not create the virtual java machine"

This isn't the exact code, but it's the main idea of the error message and I'm so confused on what the heck it means or how I can change that. I have looked at many different tutorials and found ways to fix it, but I can't get it to work. If anyone has any feedback please let me know and if needed I can try and post some images of my Terminal. Please remember that this is on Linux, I've gone through too many Windows 10 tutorials!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29508
Joined: Wed Jul 06, 2011 3:58 am

Re: Minecraft Error Message!

Post by xenopeek »

Please open the terminal from your menu and type this command and press enter: java -version
Paste its output here. You can select & copy text through the terminal's Edit menu.

Which version of Linux Mint are you using? If you don't know, also share the output of the command: inxi -S

The error you've been given is generic. It could be as simple as passing an option for Java with a typo; that would also give you the "could not create the virtual java machine" error.

The steps to run Minecraft on Linux Mint are as easy as:
  • Download Minecraft.jar from the website https://minecraft.net/en/download/
  • Open your file manager and go to the directory where you have downloaded Minecraft.jar. Right-click the file and select Properties from the context menu.
  • Go to the Permissions tab and select "Allow executing file as program".
  • Go to the Open With tab and select OpenJDK Java and click to set that as default, if that wasn't already the case.
  • Close the Properties dialog and double-click Minecraft.jar in your file manager to start it.
If you did anything more than this, that might be the reason you have errors.
Image
Gaming Fool

Re: Minecraft Error Message!

Post by Gaming Fool »

I have done the steps given and here is the code for my java version:

java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+140)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+140, mixed mode)

Here is the version of my computer version: System:

Host: logan-Inspiron-3521 Kernel: 3.19.0-32-generic x86_64 (64 bit)
Desktop: Cinnamon 2.8.8 Distro: Linux Mint 17.3 Rosa

I changed all of the properties and everything, this is what I have now. Now when I open the program it gives me this new error message. My only thought of why it's giving me this is because I may not have the newest up to date JDK program.

Unrecognized VM option 'CMSIncrementalMode'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
User avatar
xenopeek
Level 25
Level 25
Posts: 29508
Joined: Wed Jul 06, 2011 3:58 am

Re: Minecraft Error Message!

Post by xenopeek »

How are you running the program that you are passing it the argument you are getting an error about? You should not need to pass any arguments. Just double-click the Minecraft.jar file.

As for Java, I'm using OpenJDK 8 without problems (package openjdk-8-jre in Software Manager). You I think have Oracle Java 9 installed. I can't help with determining if Oracle Java is the problem.
Image
Gaming Fool

Re: Minecraft Error Message!

Post by Gaming Fool »

I do have Oracle 9, is that a big problem. What do I do from here knowing I'm getting this error message?
Gaming Fool

Re: Minecraft Error Message!

Post by Gaming Fool »

Okay, when I double-click the icon, launcher, it launches and brings me to the Minecraft launcher. From there I can edit my profile and everything, but when I click play it shortly gives me an error message in the launcher
Gaming Fool

Re: Minecraft Error Message!

Post by Gaming Fool »

I think I have a found a key problem. In my launcher, I go to my settings and the Java setting (Advanced) are set to

Executable:

/usr/lib/jvm/java-9-oracle/bin/java

What is yours set to?
uberdorf

Re: Minecraft Error Message!

Post by uberdorf »

Unless you have a specific reason for needing Java 9, I would strongly recommend removing Java 9 and installing the standard Oracle Java 8. I personally use these instructions for installing Java 8 on linux https://sites.google.com/site/easylinuxtipsproject/java which happens to be written by a member here. Or you could use the webupd8 ppa.

As long as you have java correctly installed and have the launcher marked as an executable when you right-click it, it should open up. I personally use MultiMC as my launcher, because of all the different mods and instances my kids like to play with.
9se

Re: Minecraft Error Message!

Post by 9se »

I have discovered that for this error you merely need to go into the launcher settings, check executable and set what is there to /usr/lib/jvm/java-8-oracle/bin/java or change the java-9-oracle to an 8. this worked for me but i do not know about you!
Locked

Return to “Gaming”