User avatar
rpiMike
Posts: 1206
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 03, 2019 9:41 pm

R3lay wrote:
Wed Jul 03, 2019 8:45 pm
Is this impossible on the Pi2 or just not tested?
I did originally get Minecraft 1.8.9 running on a Pi2 - haven't tried this version but it might work.

GeeCeeGee
Posts: 4
Joined: Fri Jul 05, 2019 4:38 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Fri Jul 05, 2019 4:44 pm

Hiya,

Was this problem resolved? I'm getting the same problem - fresh install on a 2Gb Pi4.

when I type java -version, I get;

java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-post-Raspbian-5)
OpenJDK Server VM (build 11.0.3+7-post-Raspbian-5, mixed mode)

Any ideas? Any help appreciated!

cheers

Graeme


Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
Quote
Mon Jul 01, 2019 7:57 pm

hiya, I followed the guide on pi 4. and I get this error?

MINECRAFT_UUID=4194a18fcb284c2d9913741de45b2ac2
OpenJDK 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.

lambdapi101
Posts: 7
Joined: Sat Jan 26, 2019 4:12 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Fri Jul 05, 2019 7:15 pm

Buster is similar to Stretch. They said it

galicin
Posts: 11
Joined: Wed Dec 09, 2015 3:47 am

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sat Jul 06, 2019 4:57 am

I use Pi4/4GB and due to the same error get rid of CMSIncrementalMode option, but now I have this error:
Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

User avatar
rpiMike
Posts: 1206
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sat Jul 06, 2019 6:25 am

I’ll try a fresh install later today.

Zewyn
Posts: 1
Joined: Sat Jul 06, 2019 3:27 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sat Jul 06, 2019 3:41 pm

Have any of you tried custom launchers that have modpacks f.e Tlauncher with Sevtech Ages?
I'm wondering if that would even start up on a RPi4 and if it does what would the avg fps figure look like?
Most modpacks that officially say they require more than 4GBs of ram run just fine on 3-4 if allocated on a proper pc that has 8 or more cores.

User avatar
rpiMike
Posts: 1206
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Jul 07, 2019 7:53 am

rpiMike wrote:
Sat Jul 06, 2019 6:25 am
I’ll try a fresh install later today.
I've just done a a fresh install on my Pi4 with Buster (fully updated) and all worked fine.

If you are having issues I need more info.

leafs444
Posts: 12
Joined: Sun Jul 29, 2018 8:26 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Jul 07, 2019 10:32 pm

Ima make a full GUI installer using Whiptail because I'm bored and that's what I do for fun.
First I'll make a script to just fully install (like I did with the other thread) without using the UIs (unless you count read as a UI). I basically just read through the entire raspi-config shell script trying to figure out how to enable fake KMS gl drivers.

GeeCeeGee
Posts: 4
Joined: Fri Jul 05, 2019 4:38 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Tue Jul 09, 2019 9:51 pm

Hi,

Tried another fresh install on my Pi4, but still getting the same error.

Followed instructions 1,4 and 5. When I run Minecraft launcher and login I get the attached screen dump.

If Java is loaded ok, should I see 'Javascript required'?

I've also attached the output from running the downloads at stage 4. (attached zip file)

I then follow steps 6,7,8,9,10 and get the error message;

[email protected]:~/Minecraft $ ./runMC1_12_2_OptifineE3.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 795 100 631 100 164 1959 509 --:--:-- --:--:-- --:--:-- 2461
todays access token = 2942681281104ba49f12d836a69c650c
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 79 100 65 100 14 177 38 --:--:-- --:--:-- --:--:-- 215
MINECRAFT_UUID=4cbdd36164b74b56a4716ccb40592170
OpenJDK 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 clues in the info above? I'm sure I must be doing something wrong but can't see what it is!

Thanks again for any help!
Attachments
installation stage4.zip
text file of output during installation - stage 4
(32.3 KiB) Downloaded 63 times
screen.jpg
screen dump from stage 5
screen.jpg (114.48 KiB) Viewed 6174 times

Maggi9295
Posts: 3
Joined: Wed Jul 10, 2019 12:30 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 10, 2019 12:47 pm

Hello everyone,

I freshly installed the newest Raspbian Buster on a RPi4 4GB and followed this tutorial point after point. everything worked without a error during th installation, but when i typed "./runMC1_12_2_OptifineE3.sh" to start Minecraft, I also get a error and minecraft wont start, exactly like GeeCeeGee posted.
It would be awesome if you could make a installer with a GUI, maybe that would fix the Eroor. :D

Best Regards,
Maggi

User avatar
rpiMike
Posts: 1206
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 10, 2019 1:00 pm

Maggi9295 wrote:
Wed Jul 10, 2019 12:47 pm
Hello everyone,

I freshly installed the newest Raspbian Buster on a RPi4 4GB and followed this tutorial point after point. everything worked without a error during th installation, but when i typed "./runMC1_12_2_OptifineE3.sh" to start Minecraft, I also get a error and minecraft wont start, exactly like GeeCeeGee posted.
It would be awesome if you could make a installer with a GUI, maybe that would fix the Eroor. :D

Best Regards,
Maggi
Did you install a Raspbian Buster image or from Noobs?

What output do you get if you run the following commands?

Code: Select all

java -version
sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
java -version

User avatar
rpiMike
Posts: 1206
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 10, 2019 1:04 pm

GeeCeeGee wrote:
Tue Jul 09, 2019 9:51 pm
Hi,

Tried another fresh install on my Pi4, but still getting the same error.

Followed instructions 1,4 and 5. When I run Minecraft launcher and login I get the attached screen dump.

If Java is loaded ok, should I see 'Javascript required'?

I've also attached the output from running the downloads at stage 4. (attached zip file)

I then follow steps 6,7,8,9,10 and get the error message;

[email protected]:~/Minecraft $ ./runMC1_12_2_OptifineE3.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 795 100 631 100 164 1959 509 --:--:-- --:--:-- --:--:-- 2461
todays access token = 2942681281104ba49f12d836a69c650c
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 79 100 65 100 14 177 38 --:--:-- --:--:-- --:--:-- 215
MINECRAFT_UUID=4cbdd36164b74b56a4716ccb40592170
OpenJDK 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 clues in the info above? I'm sure I must be doing something wrong but can't see what it is!

Thanks again for any help!
Did you install a Raspbian Buster image or from Noobs?

Don't worry about the javascript error. When installing Minecraft did you 'Edit Profile' and select 'Release 1.12.2' and save?

What output do you get if you run the following commands?

Code: Select all

java -version
sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
java -version

GeeCeeGee
Posts: 4
Joined: Fri Jul 05, 2019 4:38 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 10, 2019 4:46 pm

Did you install a Raspbian Buster image or from Noobs? I've tried both - also Buster with recommended software and without - and also a couple of different SD cards

Don't worry about the javascript error. When installing Minecraft did you 'Edit Profile' and select 'Release 1.12.2' and save? Yes did that. The screenshot was taken just before I did this.

What output do you get if you run the following commands?
Code: Select all

java -version
sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
java -version

I get the following;

[email protected]:~ $ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+1-Raspbian-1)
OpenJDK Server VM (build 11.0.3+1-Raspbian-1, mixed mode)
[email protected]:~ $ sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
[email protected]:~ $ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
[email protected]:~ $ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+1-Raspbian-1)
OpenJDK Server VM (build 11.0.3+1-Raspbian-1, mixed mode)
[email protected]:~ $


I'm creating my SD image on a Mac, could this be an issue?

cheers

Graeme

Maggi9295
Posts: 3
Joined: Wed Jul 10, 2019 12:30 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 10, 2019 4:58 pm

Thanks a lot for your fast reply!
I used the normal "Raspbian Buster with desktop and recommended software"(Release date:2019-06-20), NOT noobs.
Here is what i got:

Code: Select all

[email protected]:~ $ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+1-Raspbian-1)
OpenJDK Server VM (build 11.0.3+1-Raspbian-1, mixed mode)
[email protected]:~ $ sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
[email protected]:~ $ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
[email protected]:~ $ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+1-Raspbian-1)
OpenJDK Server VM (build 11.0.3+1-Raspbian-1, mixed mode)
(Note: there was no output from the second and third command)

User avatar
rpiMike
Posts: 1206
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 10, 2019 5:09 pm

I don't understand why the default java version is not changing.

What happens if you both edit the run script and add the full path to Oracle java:

Code: Select all

cd ~/Minecraft
leafpad runMC1_12_2_OptifineE3.sh 
Approx line 54 (Options,Line Numbers) change

Code: Select all

java \
to

Code: Select all

/opt/jdk/jdk1.8.0_211/bin/java \

Maggi9295
Posts: 3
Joined: Wed Jul 10, 2019 12:30 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 10, 2019 5:38 pm

Thanks a lot! It works flawlssly!
even in maximised windowed mode it runs at a average of 20 fps, very playable. I also tested multiplayer, no problm, i was able to connect to my server.
Great work! :D

GeeCeeGee
Posts: 4
Joined: Fri Jul 05, 2019 4:38 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 10, 2019 9:52 pm

Fantastic! That's fixed it for me too.

Thanks for your help! :D :D :D :D

jdonald
Posts: 436
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Jul 21, 2019 5:07 pm

rpiMike wrote:
Wed Jul 10, 2019 5:09 pm
I don't understand why the default java version is not changing.
Because you have these lines commented out in setupMC1.sh :

Code: Select all

#sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
#sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
Also I think you need to call update-alternatives with --config after --install, especially if someone already has JDK11 installed.

Thanks for providing this example though. I had been wondering how to install JDK8 after Oracle broke things with the new terms.

By the way, the longer your scripts get the more I'd recommend putting:

Code: Select all

#!/bin/sh -e
at the top to make it stop on errors. When troubleshooting obscure issues on others' systems you get more useful info when focusing on the first error encountered rather than all the noise if everything else runs through with limited success.

User avatar
rpiMike
Posts: 1206
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Jul 21, 2019 5:42 pm

I commented out those 'update-alternatives' lines because they seemed to work for me - but no one else. So added the full path to java in the run script.

Nice tip about stopping on errors, I will do that.

jdonald
Posts: 436
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Jul 21, 2019 9:52 pm

Oh I get it now. You commented out those lines because they weren't working, and not: they weren't working because you commented them out.

Most likely it wasn't successfully configuring java initially because you were missing the update-alternatives --config step, but what you have now is cleaner anyhow. Certainly preferred to avoid messing with anyone's existing JDK (~11) installation.

leafs444
Posts: 12
Joined: Sun Jul 29, 2018 8:26 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Mon Jul 22, 2019 2:47 pm

Hey @rpiMike,
I was wondering if you’d be OK with me posting my shell script that uses parts of your shell script on here.

Thanks in advance,
leafs444

User avatar
rpiMike
Posts: 1206
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Mon Jul 22, 2019 2:51 pm

leafs444 wrote:
Mon Jul 22, 2019 2:47 pm
Hey @rpiMike,
I was wondering if you’d be OK with me posting my shell script that uses parts of your shell script on here.

Thanks in advance,
leafs444
Yes, that’s ok

COMMANDERY11
Posts: 2
Joined: Tue Jan 02, 2018 10:41 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Tue Jul 23, 2019 9:01 pm

This tutorial did work however it takes a very long time to get into worlds even crashing! I am running this on a pi3 which explains the crashing since the pi 4 has much more ram then the 3. Is there any way I can maybe play an older minecraft version like 1.8.9? It would probably run a lot faster since there is less things to load. With all that stuff they are adding to minecraft the pi3 just is not capable of running a newer version of minecraft at a playable speed. Any help is greatly appreciated!

Tomdizzy
Posts: 7
Joined: Sat Oct 20, 2018 9:55 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Tue Jul 23, 2019 11:30 pm

Hello, i'm on a pi4 4gb with the official dsi display and i'm getting this error

Code: Select all

Description: Initializing game

java.lang.ExceptionInInitializerError
	at Config.getDisplayModes(Config.java:1854)
	at bid$a.<clinit>(GameSettings.java:3569)
	at bid.<init>(GameSettings.java:331)
	at bib.aq(SourceFile:443)
	at bib.a(SourceFile:404)
	at net.minecraft.client.main.Main.main(SourceFile:123)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.RuntimeException: org.lwjgl.LWJGLException: No modes available
	at org.lwjgl.opengl.Display.<clinit>(Display.java:141)
	... 12 more
Caused by: org.lwjgl.LWJGLException: No modes available
	at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
	... 12 more

jdonald
Posts: 436
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 24, 2019 1:33 am

Another user recently got the same error with Forge: https://raspberrypi.stackexchange.com/q ... 12-2-issue

Though their use-case is different (1024x768 HDMI television) the troubleshooting steps may be similar, i.e. I recommend providing the output of xrandr -v and xrandr -q.

And did you get this with Forge installed, or Minecraft alone?

Return to “Gaming”