Linux Tips and Tricks
Linux Tips and Tricks Table of Contents
How To Install Java on the Steam Deck
- In the
/home/deck/Applicationsfolder, create ajdkfolder - 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.gzfile to the right ofLinux / x64to the newly created/home/deck/Applications/jdkfolder - 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/deckfolder, right click the.bashrcfile, clickOpen with Kateor a text editor of your choice~/.bashrcis a hidden file by default. In Dolphin (file manager), click the hamburger menu in the top right, clickShow Hidden Filesto see these files
-
At the bottom of the
.bashrcfile, paste the following two lines:export JAVA_HOME=$HOME/Applications/jdk export PATH=$JAVA_HOME/bin:$PATH -
Save and exit out of the
.bashrcfile - 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/.