Tutorial  Updated

How To Play Minecraft Java Edition On L4T Linux [Tutorial]

For this tutorial you need to have L4T Linux set up and updated.

This is a simple guide(as simple as I could make it) to installing all necessary things to get Minecraft Java Edition up and running.

I basically compiled a full version of various different tutorials I found scattered around that I used to make Minecraft work and play normally.


  • Open Terminal
  • Type all of the following stuff in Terminal

Code:
sudo apt update
  • Install the following dependencies:
Code:
sudo apt install openjdk-8-jdk
sudo apt install gradle openjdk-8-jdk libx11-dev xorg-dev
  • Soft link libjawt
Code:
sudo ln -s /usr/lib/jvm/java-8-openjdk-arm64/lib/aarch64/libjawt.so /usr/lib/libjawt.so
  • Compile LWJGL
Code:
git clone https://github.com/LWJGL/lwjgl
cd lwjgl
ant generate-all
ant compile_native
  • Copy Binaries
Code:
mkdir -p ~/.minecraft/natives
cp ~/lwjgl/libs/linux/liblwjgl.so ~/.minecraft/natives/
cp ~/lwjgl/libs/linux/libopenal.so ~/.minecraft/natives/
  • Setup environment variable (you need to run this command in terminal every time you close terminal and re-open it to launch Minecraft again otherwise the game will crash)
Code:
export _JAVA_OPTIONS='-Djava.library.path=/home/YOURUSERNAME/.minecraft/natives/'
  • Play Minecraft
Code:
wget https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar
java -jar Minecraft.jar

  • Use your Minecraft Account to Login to the launcher
  • Choose the version you want to play in settings (has to be Minecraft 1.12.2 or lower, newer versions make the game crash)
  • Click Play and if you did everything right it should launch and play without a problem
  • NOTE: If you want to use Optifine with it just download the Optifine jar for your version (again 1.12.2 or lower) and run the following command and click install:
Code:
java -jar Optifine(version number).jar
  • Then when you start the Minecraft launcher again a new profile should come up named Optifine, just start Minecraft with that profile instead of your other one.
  • Also apparently if you type into Terminal "sudo jetson_clocks" it will give you more fps ingame? Not tested it yet.
 
Last edited by OverkillLabs,

Craftyawesome

Well-Known Member
Member
Joined
Feb 3, 2018
Messages
173
Trophies
0
XP
915
Country
United States
i am using java 8 right now


you didnt show how to install java 8... the guide installs java 11

This gbatemp post installs java 8. I ended up with 11 at some point (random ppa with launcher that didn't work?) and I got this same error.

So use that link to uninstall java, then start this gbatemp tutorial from the beginning.
 

Alex S

Creator Of WWHDM, And Metroid Fusion XER0X!
Member
Joined
May 2, 2016
Messages
695
Trophies
0
Location
Hell
Website
www.erm.wut
XP
1,002
Country
United States
This gbatemp post installs java 8. I ended up with 11 at some point (random ppa with launcher that didn't work?) and I got this same error.

So use that link to uninstall java, then start this gbatemp tutorial from the beginning.

now i get this wtf


alexs2412@alexs2412-laptop:~$ sudo apt install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java
libatk-wrapper-java-jni openjdk-8-jdk-headless openjdk-8-jre
openjdk-8-jre-headless
Suggested packages:
default-jre openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin
fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
fonts-wqy-zenhei
The following NEW packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java
libatk-wrapper-java-jni openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre
openjdk-8-jre-headless
0 upgraded, 9 newly installed, 0 to remove and 313 not upgraded.
Need to get 38.4 MB of archives.
After this operation, 147 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.
 

Craftyawesome

Well-Known Member
Member
Joined
Feb 3, 2018
Messages
173
Trophies
0
XP
915
Country
United States
now i get this wtf


alexs2412@alexs2412-laptop:~$ sudo apt install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java
libatk-wrapper-java-jni openjdk-8-jdk-headless openjdk-8-jre
openjdk-8-jre-headless
Suggested packages:
default-jre openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin
fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
fonts-wqy-zenhei
The following NEW packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java
libatk-wrapper-java-jni openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre
openjdk-8-jre-headless
0 upgraded, 9 newly installed, 0 to remove and 313 not upgraded.
Need to get 38.4 MB of archives.
After this operation, 147 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.
Try both capital and lowercase y? Maybe add -y before install? Instead of apt try apt-get?
 

Alex S

Creator Of WWHDM, And Metroid Fusion XER0X!
Member
Joined
May 2, 2016
Messages
695
Trophies
0
Location
Hell
Website
www.erm.wut
XP
1,002
Country
United States
after running the installer i now have


openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)


is this correct?

EDIT: It works now :)
 
Last edited by Alex S,

Alex S

Creator Of WWHDM, And Metroid Fusion XER0X!
Member
Joined
May 2, 2016
Messages
695
Trophies
0
Location
Hell
Website
www.erm.wut
XP
1,002
Country
United States
and the launcher spits this at me now...


Picked up _JAVA_OPTIONS: -Djava.library.path=/home/alexs2412/.minecraft/natives/
OpenJDK 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
GameStarter running! net.minecraft.client.main.Main
[12:13:29] [Client thread/INFO]: Setting user: alexs2412
[12:13:42] [Client thread/INFO]: LWJGL Version: 2.9.4
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000007f74ee1670, pid=31436, tid=0x0000007fa60261f0
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b03) (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b03 mixed mode linux-aarch64 compressed oops)
# Problematic frame:
# C [libGLX.so.0+0xd670]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/alexs2412/.minecraft/hs_err_pid31436.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

 

Menchen

Member
Newcomer
Joined
Apr 27, 2019
Messages
7
Trophies
0
Age
22
XP
116
Country
Spain
yeah and i double checked. thats why im confused.
Try
Code:
wget http://kcat.strangesoft.net/openal-releases/openal-soft-1.15.1.tar.bz2
tar xvjf openal-soft-1.15.1.tar.bz2
cd openal-soft-1.15.1/build/
cmake ..
make

After compiling, copy that openal to natives.
 
Last edited by Menchen,

Alex S

Creator Of WWHDM, And Metroid Fusion XER0X!
Member
Joined
May 2, 2016
Messages
695
Trophies
0
Location
Hell
Website
www.erm.wut
XP
1,002
Country
United States
Try
Code:
wget http://kcat.strangesoft.net/openal-releases/openal-soft-1.15.1.tar.bz2
tar xvjf openal-soft-1.15.1.tar.bz2
cd openal-soft-1.15.1/build/
cmake ..
make

After compiling, copy that openal to natives.


IT WORKS!!!

I did have to copy lib.openal.so.1.15.1 to tje natives folder AND rename it to lib.openal.so and then it worked :)
 
  • Like
Reactions: RiceAlex

Craftyawesome

Well-Known Member
Member
Joined
Feb 3, 2018
Messages
173
Trophies
0
XP
915
Country
United States
i got this to work on both docked and undocked... what are you talking about?
large images incoming
We are not referring to maximizing the window (as in below)
jGV7h1I.jpg


We are referring to the proper fullscreen when you press f11 or hit the fullscreen button in the previous screenshot. On switch, this doesn't work.
qyvInim.jpg


You can play vertical if you want by disabling the counter-clockwise rotation in the display settings. I'm not sure anyone would want to, though.
jIyzu2q.jpg


Basically fullscreen runs vertically regardless of what your rotation is set to.

Maybe we could force the correct resolution? Or maybe a mod like https://www.curseforge.com/minecraft/mc-mods/fullscreen-windowed-borderless-for-minecraft would allow linux to rotate the screen? (if that mod even works on linux)
 
Last edited by Craftyawesome,
  • Like
Reactions: RiceAlex

RiceAlex

Member
Newcomer
Joined
May 6, 2019
Messages
17
Trophies
0
Age
26
XP
90
Country
China
large images incoming
We are not referring to maximizing the window (as in below)
jGV7h1I.jpg


We are referring to the proper fullscreen when you press f11 or hit the fullscreen button in the previous screenshot. On switch, this doesn't work.
qyvInim.jpg


You can play vertical if you want by disabling the counter-clockwise rotation in the display settings. I'm not sure anyone would want to, though.
jIyzu2q.jpg


Basically fullscreen runs vertically regardless of what your rotation is set to.

Maybe we could force the correct resolution? Or maybe a mod like https://www.curseforge.com/minecraft/mc-mods/fullscreen-windowed-borderless-for-minecraft would allow linux to rotate the screen? (if that mod even works on linux)
Yes,I encounter this bug too,trying to fix it anyway but failed and even broke my L4T

--------------------- MERGED ---------------------------

large images incoming
We are not referring to maximizing the window (as in below)
jGV7h1I.jpg


We are referring to the proper fullscreen when you press f11 or hit the fullscreen button in the previous screenshot. On switch, this doesn't work.
qyvInim.jpg


You can play vertical if you want by disabling the counter-clockwise rotation in the display settings. I'm not sure anyone would want to, though.
jIyzu2q.jpg


Basically fullscreen runs vertically regardless of what your rotation is set to.

Maybe we could force the correct resolution? Or maybe a mod like https://www.curseforge.com/minecraft/mc-mods/fullscreen-windowed-borderless-for-minecraft would allow linux to rotate the screen? (if that mod even works on linux)
Forcing the correct resolution is failed,using Optifine and forcing it to be 1280x720 got same result at 720x1280 framebuffer,but f11 fullscreen worked correctly on 1.7.2,so maybe this is a bug related to newer version of minecraft or LWJGL2,
could you switch to LWJGL3 to see if it fix?
 

RiceAlex

Member
Newcomer
Joined
May 6, 2019
Messages
17
Trophies
0
Age
26
XP
90
Country
China
@OverkillLabs There is a serious BUG cause by installing QT5 ,which changes L4T graphics driver and will prevent you from launching Minecraft.
Error"LibGLX.so 0+670d" while initializing LWJGL2 and Minecraft CRASHES!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: Ohkay