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
919
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
919
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
919
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
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...