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

How to setup any version of Minecraft on Pi4

Wed Sep 02, 2020 6:11 pm

How to setup any version of Minecraft (java) on Raspberry Pi4 using the official launcher

Edit 9/11/2020: Download files moved from dropbox to github

Thanks to HenriZ for his launcher tips.

Please note :
Do this at your own risk.
If you have any doubts use a spare SD card.
I'm using the official 5.1V 3.0A power supply, with the Pi4 4GB in an open sided case with small fan (currently off).
Should work on 2GB,4GB,8GB Pi4 and Pi400.
I do not advise trying to run this over VNC.
Please make sure you are using your own valid Minecraft account.

This tutorial should work on Raspberry Pi OS 32bit and 64bit(beta)

Video: Official launcher and MC 1.6.2 with Optifine - https://youtu.be/Qux-pIelY44

1 Download and run setup script
This will take a few minutes, including installing Oracle java.

Code: Select all

mkdir ~/Minecraft && cd ~/Minecraft && wget https://github.com/mikehooper/Minecraft/raw/main/setupMC.sh && chmod +x setupMC.sh && ./setupMC.sh
2 Run the launcher

Code: Select all

cd ~/Minecraft
java -jar launcher.jar
Enter email address or username and password.

3 Edit launcher profile
Click 'Edit Profile'

Image

Select 'Use Version', choose the version you require.

Image
  • 32 bit

    Tick 'JVM Arguments'

    Add the following to the beginning of the arguments to specify lwjgl2 or lwjgl3 depending on version (if using a user other than 'pi' change accordingly):

    < 1.13 :

    Code: Select all

    -Dorg.lwjgl.librarypath=/home/pi/lwjgl2arm32 
    >= 1.13 :

    Code: Select all

    -Dorg.lwjgl.librarypath=/home/pi/lwjgl3arm32 
    Image
  • 64 bit
    Tick 'Executable'

    Replace the open jdk path with the oracle jdk path:

    Code: Select all

    /opt/jdk/jdk1.8.0_251/bin/java
    Tick 'JVM Arguments'

    Add the following to the beginning of the arguments to specify lwjgl3 (if using a user other than 'pi' change accordingly):

    >= 1.13 :

    Code: Select all

    -Dorg.lwjgl.librarypath=/home/pi/lwjgl3arm64 
Click 'Save Profile'

Image

4 Install Minecraft
Click 'Play' to install Minecraft.

Image

5 Install Optifine (recommended)
If you wish to install Optifine, download the relevant version from https://optifine.net/downloads ,then install with:

Code: Select all

cd ~/Downloads
java -jar <file>
where <file> is the downloaded Optifine file eg OptiFine_1.16.2_HD_U_G3.jar (note linux is case sensitive)

Click 'Install'

A new launcher profile called 'Optifine' will have been created, you will need to re-add the paths.

In the launcher click 'Play' to start Minecraft.

Hopefully Minecraft should run :P

Notes:

If you get 'Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.DefaultSysImplementation.getPointerSize()' check you have specified the correct lwjgl2arm32 or lwjgl3arm32 library path for your MC version in JVM arguments.
Last edited by rpiMike on Mon Nov 09, 2020 12:24 pm, edited 12 times in total.

Rizzy
Posts: 10
Joined: Sat Jul 25, 2020 11:11 pm

Re: How to setup any version of Minecraft on Pi4

Wed Sep 02, 2020 9:17 pm

great job testing this now

Rizzy
Posts: 10
Joined: Sat Jul 25, 2020 11:11 pm

Re: How to setup any version of Minecraft on Pi4

Wed Sep 02, 2020 9:26 pm

doesnt work will test with your optifine

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

Re: How to setup any version of Minecraft on Pi4

Wed Sep 02, 2020 9:39 pm

Rizzy wrote:
Wed Sep 02, 2020 9:26 pm
doesnt work will test with your optifine
What doesn’t work?

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

Re: How to setup any version of Minecraft on Pi4

Thu Sep 03, 2020 11:09 am

MC 1.16.2 with Optifine 1.16.2 HD U G3 from the official launcher:

Image

Sykobee
Posts: 3
Joined: Thu Aug 20, 2020 4:15 pm

Re: How to setup any version of Minecraft on Pi4

Thu Sep 03, 2020 4:04 pm

Doesn't work here: Raspberry Pi OS 64-bit // Raspberry Pi 4 8GB

Code: Select all

[16:48:58 INFO]: Job 'Version & Libraries' finished successfully (took 0:00:00.907)
[16:48:58 INFO]: Launching game
[16:48:58 INFO]: Unpacking natives to /home/pi/.minecraft/versions/1.16.2-OptiFine_HD_U_G3/1.16.2-OptiFine_HD_U_G3-natives-4422155773238
[16:48:58 INFO]: Launching in /home/pi/.minecraft
[16:48:58 INFO]: Half command: /opt/jdk/jdk1.8.0_251/bin/java -Dorg.lwjgl.librarypath=/home/pi/lwjgl3arm64  -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Djava.library.path=/home/pi/.minecraft/versions/1.16.2-OptiFine_HD_U_G3/1.16.2-OptiFine_HD_U_G3-natives-4422155773238 -Dminecraft.launcher.brand=java-minecraft-launcher -Dminecraft.launcher.version=1.6.93 -cp /home/pi/.minecraft/libraries/optifine/OptiFine/1.16.2_HD_U_G3/OptiFine-1.16.2_HD_U_G3.jar:/home/pi/.minecraft/libraries/optifine/launchwrapper-of/2.2/launchwrapper-of-2.2.jar:/home/pi/.minecraft/libraries/com/mojang/patchy/1.1/patchy-1.1.jar:/home/pi/.minecraft/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/jna/4.4.0/jna-4.4.0.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar:/home/pi/.minecraft/libraries/com/ibm/icu/icu4j/66.1/icu4j-66.1.jar:/home/pi/.minecraft/libraries/com/mojang/javabridge/1.0.22/javabridge-1.0.22.jar:/home/pi/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar:/home/pi/.minecraft/libraries/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar:/home/pi/.minecraft/libraries/com/google/guava/guava/21.0/guava-21.0.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar:/home/pi/.minecraft/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar:/home/pi/.minecraft/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/home/pi/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/home/pi/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/home/pi/.minecraft/libraries/com/mojang/brigadier/1.0.17/brigadier-1.0.17.jar:/home/pi/.minecraft/libraries/com/mojang/datafixerupper/4.0.26/datafixerupper-4.0.26.jar:/home/pi/.minecraft/libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar:/home/pi/.minecraft/libraries/com/mojang/authlib/1.6.25/authlib-1.6.25.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/home/pi/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/pi/.minecraft/libraries/it/unimi/dsi/fastutil/8.2.1/fastutil-8.2.1.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.8.1/log4j-api-2.8.1.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2.jar:/home/pi/.minecraft/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3.jar:/home/pi/.minecraft/versions/1.16.2-OptiFine_HD_U_G3/1.16.2-OptiFine_HD_U_G3.jar net.minecraft.launchwrapper.Launch
[16:48:58 INFO]: Looking for orphaned versions to clean up...
[16:48:59 INFO]: Looking for old natives & assets to clean up...
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: java.io.IOException: Stream closed
[16:48:59 ERROR]: Game ended with bad state (exit code 1)
[16:48:59 INFO]: Ignoring visibility rule and showing launcher due to a game crash
[16:48:59 INFO]: Deleting /home/pi/.minecraft/versions/1.16.2-OptiFine_HD_U_G3/1.16.2-OptiFine_HD_U_G3-natives-4422155773238
Raspberry Pi 4 8GB

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

Re: How to setup any version of Minecraft on Pi4

Thu Sep 03, 2020 9:52 pm

Did you load Minecraft from the launcher before installing Optifine?

Sykobee
Posts: 3
Joined: Thu Aug 20, 2020 4:15 pm

Re: How to setup any version of Minecraft on Pi4

Thu Sep 03, 2020 11:01 pm

Yep, I did the launcher first, set things up, then installed Optifine, then redid the changes.

Maybe I'll try again from scratch tomorrow. I did see an Amazon S3 503 error about resources XML in the log beforehand, is that expected?
Raspberry Pi 4 8GB

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

Re: How to setup any version of Minecraft on Pi4

Thu Sep 03, 2020 11:21 pm

Not sure about the xml error. I’ll try again from scratch tomorrow too.

Rizzy
Posts: 10
Joined: Sat Jul 25, 2020 11:11 pm

Re: How to setup any version of Minecraft on Pi4

Fri Sep 04, 2020 1:27 am

rpiMike wrote:
Wed Sep 02, 2020 9:39 pm
Rizzy wrote:
Wed Sep 02, 2020 9:26 pm
doesnt work will test with your optifine
What doesn’t work?
I fixed it there was a error in the code I entered

MikeCoder
Posts: 84
Joined: Fri Jan 24, 2020 12:05 am

Re: How to setup any version of Minecraft on Pi4

Fri Sep 04, 2020 9:13 pm

I got this error:

Code: Select all

Error: Could not find or load main class 
Caused by: java.lang.ClassNotFoundException: 

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

Re: How to setup any version of Minecraft on Pi4

Fri Sep 04, 2020 9:22 pm

MikeCoder wrote:
Fri Sep 04, 2020 9:13 pm
I got this error:

Code: Select all

Error: Could not find or load main class 
Caused by: java.lang.ClassNotFoundException: 
Any more detail? Which OS? Which Pi? Which MC version?

MikeCoder
Posts: 84
Joined: Fri Jan 24, 2020 12:05 am

Re: How to setup any version of Minecraft on Pi4

Sat Sep 05, 2020 7:49 pm

I'm running Twister OS on a pi 4 with version 1.6.2

MikeCoder
Posts: 84
Joined: Fri Jan 24, 2020 12:05 am

Re: How to setup any version of Minecraft on Pi4

Sat Sep 05, 2020 7:58 pm

Hey bro I fixed it! I forgot I set my kernel to 64 bit and used the 32 bit JVM argument. Image

zang74
Posts: 1
Joined: Sun Sep 06, 2020 11:54 am

Re: How to setup any version of Minecraft on Pi4

Sun Sep 06, 2020 12:04 pm

With this new method, how would one go about shutting down a desktop session (Mate in this case) to free up RAM to run MC full screen, and have it successfully return back to desktop afterwards?

This is an RPI4B, 2GB on Ubuntu Mate 20.04b1

Sykobee
Posts: 3
Joined: Thu Aug 20, 2020 4:15 pm

Re: How to setup any version of Minecraft on Pi4

Mon Sep 07, 2020 11:01 pm

Edit: Repeated from scratch and plain-non-Optifine MC is now working, and there's nothing different. I must have had a brainfuzz or something.


Still can't get it to work.

The Pi has OpenJDK JRE 11 installed as normal for Raspberry Pi OS (latest beta version, fresh install), and I had previously installed OpenJDK JDK 11 for development, and Oracle JDK 8 is installed correctly by this script. I can switch java version using sudo update-alternatives --config java

If I run launcher.jar with Oracle JDK, I get a HeadlessException

[code]$ java -jar launcher.jar
Exception in thread "main" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
at java.awt.Window.<init>(Window.java:536)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at javax.swing.JFrame.<init>(JFrame.java:189)
at net.minecraft.launcher.Main.startLauncher(Main.java:56)
at net.minecraft.launcher.Main.main(Main.java:24)[/code]


- so it thinks it is running in a headless environment for some reason - this is likely also what is killing the main game when I run the launcher with OpenJDK java which works fine up until trying to launch the game itself.

So I tried forcing headless off:

[code]$ java -version
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
$ java -Djava.awt.headless=false -jar launcher.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /opt/jdk/jdk1.8.0_251/jre/lib/aarch64/libawt_xawt.so[/code]

There is a libawt.so in /opt/jdk/jdk1.8.0_251/jre/lib/, but no libawt-xawt.so at all. libxrender1, etc, are all installed.

I don't know how much I want to dig into this...
Raspberry Pi 4 8GB

Turtles4Life715
Posts: 20
Joined: Sat May 16, 2020 3:53 pm

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 3:34 pm

Error when I click play with optifine 1.8.9 plzzzzzz help me
im using twister os (version of raspbian) on a pi 4 32bit argument entered
Attachments
Screenshot_2020-09-09_10-48-24.png
Screenshot_2020-09-09_10-48-24.png (88.38 KiB) Viewed 32758 times
Screenshot_2020-09-09_10-48-24.png
Screenshot_2020-09-09_10-48-24.png (88.38 KiB) Viewed 32758 times

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

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 3:59 pm

Did Minecraft launch before you installed Optifine?

Turtles4Life715
Posts: 20
Joined: Sat May 16, 2020 3:53 pm

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 4:03 pm

rpiMike wrote:
Wed Sep 09, 2020 3:59 pm
Did Minecraft launch before you installed Optifine?
It failed then as well
Please help me

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

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 4:43 pm

Maybe Twister OS is causing a problem. Which Pi4 are you using? Post the text from the error not screenshots. Can't see anything useful in the screenshots.

Switch to the original profile that was created and post the error text.

Turtles4Life715
Posts: 20
Joined: Sat May 16, 2020 3:53 pm

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 5:17 pm

Im using pi 4 with 4 gigs of ram
Non Optifine MC Error

Code: Select all

[Java HotSpot(TM) Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Java HotSpot(TM) Server VM warning: You have loaded library /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-16618897374015/liblwjgl64.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-16618897374015/liblwjgl.so: /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-16618897374015/liblwjgl.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850)
	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
	at java.lang.System.loadLibrary(System.java:1122)
	at org.lwjgl.Sys$1.run(Sys.java:72)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
	at org.lwjgl.Sys.loadLibrary(Sys.java:96)
	at org.lwjgl.Sys.<clinit>(Sys.java:117)
	at ave.J(SourceFile:2539)
	at net.minecraft.client.main.Main.main(SourceFile:41)
[color=#00FFFF]Optifine Error-[/color]
/code]


Optifine Error-
[code]Java HotSpot(TM) Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
[12:15:27] [main/INFO]: Loading tweak class name optifine.OptiFineTweaker
[12:15:27] [main/INFO]: Using primary tweak class name optifine.OptiFineTweaker
[12:15:27] [main/INFO]: Calling tweak class optifine.OptiFineTweaker
OptiFineTweaker: acceptOptions
OptiFineTweaker: injectIntoClassLoader
OptiFine ClassTransformer
OptiFine ZIP file: /home/pi/.minecraft/libraries/optifine/OptiFine/1.8.9_HD_U_L5/OptiFine-1.8.9_HD_U_L5.jar
OptiFineTweaker: getLaunchArguments
OptiFineTweaker: getLaunchTarget
[12:15:27] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[12:15:28] [main/ERROR]: Unable to launch
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_251]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_251]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_251]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:159) [launchwrapper-of-2.1.jar:2.1]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:30) [launchwrapper-of-2.1.jar:2.1]
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /home/pi/lwjgl3arm32-Xmx1G/liblwjgl.so
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1820) ~[?:1.8.0_251]
	at java.lang.Runtime.load0(Runtime.java:809) ~[?:1.8.0_251]
	at java.lang.System.load(System.java:1086) ~[?:1.8.0_251]
	at org.lwjgl.Sys$1.run(Sys.java:70) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_251]
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
	at org.lwjgl.Sys.loadLibrary(Sys.java:96) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
	at org.lwjgl.Sys.<clinit>(Sys.java:117) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
	at ave.J(SourceFile:2539) ~[ave.class:?]
	at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
	... 6 more

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

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 5:25 pm

Not sure, looks like some confusion between 64bit and 32bit. Does Twister OS do something weird.

Have you got a spare sd card? Try regular Raspberry Pi OS.

Turtles4Life715
Posts: 20
Joined: Sat May 16, 2020 3:53 pm

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 5:26 pm

rpiMike wrote:
Wed Sep 09, 2020 5:25 pm
Not sure, looks like some confusion between 64bit and 32bit. Does Twister OS do something weird.

Have you got a spare sd card? Try regular Raspberry Pi OS.
I will see, but twister os is 32 bit I don't know why It could be doing this.

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

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 5:50 pm

Oh, I can see you've missed a space! They are separate jvm arguments.

/home/pi/lwjgl3arm32-Xmx1G -> /home/pi/lwjgl3arm32 -Xmx1G

Full 32bit jvm arguments should be:

Code: Select all

-Dorg.lwjgl.librarypath=/home/pi/lwjgl3arm32 -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

Turtles4Life715
Posts: 20
Joined: Sat May 16, 2020 3:53 pm

Re: How to setup any version of Minecraft on Pi4

Wed Sep 09, 2020 8:01 pm

Somehow I still get an error or It will not launch

Code: Select all

Java HotSpot(TM) Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.DefaultSysImplementation.getPointerSize()I
	at org.lwjgl.DefaultSysImplementation.getPointerSize(Native Method)
	at org.lwjgl.Sys.<clinit>(Sys.java:118)
	at ave.J(SourceFile:2539)
	at net.minecraft.client.main.Main.main(SourceFile:41)

Return to “Gaming”