can't run minecraft on opesuse Leap 15.0

Hello ! community

well i am trying to install minecraft for 2 days now , and i can’t fined any solution for it.
i lunch it from terminal: java -jar Mincraft.jar and launcher is opend but when i click on play it crashes with following messages:

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.

thanks.

I’m not a gamer, but following a quick search I did find this Ubuntu thread
https://askubuntu.com/questions/943284/jvm-errors-when-running-minecraft

Edit your Java arguments (Profile Settings) for starting the game and get rid of CMSIncrementalMode.

Hope that helps.

On Tue 03 Jul 2018 12:16:03 AM CDT, deano ferrari wrote:

I’m not a gamer, but following a quick search I did find this Ubuntu
thread
http://tinyurl.com/ybezus2c

> Edit your Java arguments (Profile Settings) for starting the game and
> get rid of CMSIncrementalMode.

Hope that helps.

Hi
I would imagine it’s more like Java 10 vs Java 8…

@OP What java version is installed?


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-23-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Hi
Seems it’s being worked on for Java 10…

https://www.reddit.com/r/Minecraft/comments/88xrn8/minecraft_still_uses_java_8_meanwhile_im_sitting/

I’ve got 8 installed on Tumbleweed and runs fine, but see the same error here on SLES 15, which uses java 10…

I assumed openJDK

java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (IcedTea 3.8.0) (build 1.8.0_171-b11 suse-lp150.2.3.1-x86_64)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

I don’t have the Oracle version installed (and the minecraft launcher works for me)

sudo update-alternatives --list java
[sudo] password for root: 
/usr/lib64/jvm/jre-1.8.0-openjdk/bin/java

On Tue 03 Jul 2018 01:46:03 AM CDT, deano ferrari wrote:

malcolmlewis;2872142 Wrote:
> Hi
> I would imagine it’s more like Java 10 vs Java 8…
I assumed openJDK

Code:

java -version
openjdk version “1.8.0_171”
OpenJDK Runtime Environment (IcedTea 3.8.0) (build 1.8.0_171-b11
suse-lp150.2.3.1-x86_64) OpenJDK 64-Bit Server VM (build 25.171-b11,
mixed mode)

I don’t have the Oracle version installed (and the minecraft launcher
works for me)

Code:

sudo update-alternatives --list java
[sudo] password for root:
/usr/lib64/jvm/jre-1.8.0-openjdk/bin/java


Hi
On Tumbleweed it’s;


java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (IcedTea 3.8.0) (build 1.8.0_171-b11 suse-1.2-x86_64)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

So is 10 available on Leap 15.0 as well?


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-23-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

So is 10 available on Leap 15.0 as well?

Yes, it is…

# zypper se openjdk
Loading repository data...
Reading installed packages...

S  | Name                             | Summary                            | Type      
---+----------------------------------+------------------------------------+-----------
   | java-10-openjdk                  | OpenJDK 10 Runtime Environment     | package   
   | java-10-openjdk-accessibility    | OpenJDK 10 accessibility connector | package   
   | java-10-openjdk-demo             | OpenJDK 10 Demos                   | package   
   | java-10-openjdk-devel            | OpenJDK 10 Development Environment | package   
   | java-10-openjdk-headless         | OpenJDK 10 Runtime Environment     | package   
   | java-10-openjdk-javadoc          | OpenJDK 10 API Documentation       | package   
   | java-10-openjdk-jmods            | JMods for OpenJDK 10               | package   
   | java-10-openjdk-src              | OpenJDK 10 Source Bundle           | package   
   | java-11-openjdk                  | OpenJDK 11 Runtime Environment     | package   
   | java-11-openjdk-accessibility    | OpenJDK 11 accessibility connector | package   
   | java-11-openjdk-demo             | OpenJDK 11 Demos                   | package   
   | java-11-openjdk-devel            | OpenJDK 11 Development Environment | package   
   | java-11-openjdk-headless         | OpenJDK 11 Runtime Environment     | package   
   | java-11-openjdk-javadoc          | OpenJDK 11 API Documentation       | package   
   | java-11-openjdk-jmods            | JMods for OpenJDK 11               | package   
   | java-11-openjdk-src              | OpenJDK 11 Source Bundle           | package   
i+ | java-1_8_0-openjdk               | OpenJDK 8 Runtime Environment      | package   
   | java-1_8_0-openjdk               | OpenJDK 8 Runtime Environment      | srcpackage
   | java-1_8_0-openjdk-accessibility | OpenJDK 8 accessibility connector  | package   
   | java-1_8_0-openjdk-demo          | OpenJDK 8 Demos                    | package   
   | java-1_8_0-openjdk-devel         | OpenJDK 8 Development Environment  | package   
i+ | java-1_8_0-openjdk-headless      | OpenJDK 8 Runtime Environment      | package   
   | java-1_8_0-openjdk-javadoc       | OpenJDK 8 API Documentation        | package   
   | java-1_8_0-openjdk-src           | OpenJDK 8 Source Bundle            | package  

I have been running Leap with Java 8 openjdk for a while now and had no issues* running a minecraft server on it.

Just a note. don’t use the java-1.8.0 from the one-click opensuse website if you have Leap installed, that version is connected to Tumbleweed and after you download it your system will migrate over to tumbleweed. I learned the hard way and had to reinstall.
You would be better off using zypper in a console. As deano ferrari above has shown.
zypper se java_1.8
this will search for java 8 with your current leap repo’s.
then you only need to install using zypper

zypper install “Java version”

I tried tumbleweed, way to many bugs and kwin and kwin_x11 constantly crashed and required a complete reinstall.