I did originally get Minecraft 1.8.9 running on a Pi2 - haven't tried this version but it might work.
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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.
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.
-
- Posts: 7
- Joined: Sat Jan 26, 2019 4:12 pm
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
Buster is similar to Stretch. They said it
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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)
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
I’ll try a fresh install later today.
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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.
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.
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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.
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.
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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;
pi@raspberrypi:~/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!
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;
pi@raspberrypi:~/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 81 times
-
- screen dump from stage 5
- screen.jpg (114.48 KiB) Viewed 8044 times
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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.
Best Regards,
Maggi
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.

Best Regards,
Maggi
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
Did you install a Raspbian Buster image or from Noobs?Maggi9295 wrote: ↑Wed Jul 10, 2019 12:47 pmHello 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.![]()
Best Regards,
Maggi
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
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
Did you install a Raspbian Buster image or from Noobs?GeeCeeGee wrote: ↑Tue Jul 09, 2019 9:51 pmHi,
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;
pi@raspberrypi:~/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!
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
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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;
pi@raspberrypi:~ $ 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)
pi@raspberrypi:~ $ sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
pi@raspberrypi:~ $ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
pi@raspberrypi:~ $ 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)
pi@raspberrypi:~ $
I'm creating my SD image on a Mac, could this be an issue?
cheers
Graeme
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;
pi@raspberrypi:~ $ 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)
pi@raspberrypi:~ $ sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
pi@raspberrypi:~ $ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
pi@raspberrypi:~ $ 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)
pi@raspberrypi:~ $
I'm creating my SD image on a Mac, could this be an issue?
cheers
Graeme
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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:
(Note: there was no output from the second and third command)
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
pi@raspberrypi:~ $ 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)
pi@raspberrypi:~ $ sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100
pi@raspberrypi:~ $ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/javac 100
pi@raspberrypi:~ $ 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)
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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:
Approx line 54 (Options,Line Numbers) change
to
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
Code: Select all
java \
Code: Select all
/opt/jdk/jdk1.8.0_211/bin/java \
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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!
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!

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
Fantastic! That's fixed it for me too.
Thanks for your help!

Thanks for your help!




Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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
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
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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.
Nice tip about stopping on errors, I will do that.
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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.
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.
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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
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
-
- Posts: 2
- Joined: Tue Jan 02, 2018 10:41 pm
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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!
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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
Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4
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?
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?