Linux Tips and Tricks - EmuDeck Wiki (2024)

Linux Tips and Tricks Table of Contents

  • Linux Tips and Tricks
    • Linux Tips and Tricks Table of Contents
    • How To Install Java on the Steam Deck

How To Install Java on the Steam Deck

Back to the Top

  1. In the /home/deck/Applications folder, create a jdk folder
  2. In Desktop Mode, open the https://jdk.java.net/ website
  3. Click JDK ## to the right of Ready for Use
    • The version number may vary depending on when you are downloading Java
  4. Download the tar.gz file to the right of Linux / x64 to the newly created /home/deck/Applications/jdk folder
  5. Right click openjdk-##.#.#_linux-x64_bin.tar.gz, click Extract > Extract Archive here
    • If it creates a subfolder, move the contents directly to /home/deck/Applications/jdk
  6. In the /home/deck folder, right click the .bashrc file, click Open 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, click Show Hidden Files to see these files
  7. At the bottom of the .bashrc file, paste the following two lines:

    export JAVA_HOME=$HOME/Applications/jdkexport PATH=$JAVA_HOME/bin:$PATH
  8. Save and exit out of the .bashrc file

  9. 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/.

Linux Tips and Tricks - EmuDeck Wiki (2024)

References

Top Articles
Latest Posts
Article information

Author: Rob Wisoky

Last Updated:

Views: 5692

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Rob Wisoky

Birthday: 1994-09-30

Address: 5789 Michel Vista, West Domenic, OR 80464-9452

Phone: +97313824072371

Job: Education Orchestrator

Hobby: Lockpicking, Crocheting, Baton twirling, Video gaming, Jogging, Whittling, Model building

Introduction: My name is Rob Wisoky, I am a smiling, helpful, encouraging, zealous, energetic, faithful, fantastic person who loves writing and wants to share my knowledge and understanding with you.