Linux Tips and Tricks
Linux Tips and Tricks Table of Contents
How To Install Java on the Steam Deck
- In the
/home/deck/Applications
folder, create ajdk
folder - In Desktop Mode, open the https://jdk.java.net/ website
- Click
JDK ##
to the right ofReady for Use
- The version number may vary depending on when you are downloading Java
- Download the
tar.gz
file to the right ofLinux / x64
to the newly created/home/deck/Applications/jdk
folder - Right click
openjdk-##.#.#_linux-x64_bin.tar.gz
, clickExtract > Extract Archive here
- If it creates a subfolder, move the contents directly to
/home/deck/Applications/jdk
- If it creates a subfolder, move the contents directly to
- In the
/home/deck
folder, right click the.bashrc
file, clickOpen with Kate
or a text editor of your choice~/.bashrc
is a hidden file by default. In Dolphin (file manager), click the hamburger menu in the top right, clickShow Hidden Files
to see these files
-
At the bottom of the
.bashrc
file, paste the following two lines:export JAVA_HOME=$HOME/Applications/jdk export PATH=$JAVA_HOME/bin:$PATH
-
Save and exit out of the
.bashrc
file - Java will now be installed on your Steam Deck
- If you had any terminals open previously, close these out and re-open them in order to use Java through the command-line
To update JDK, replace the files in /home/deck/Applications/jdk
with the latest files from https://jdk.java.net/.