Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Oracle JDK on Debian Flavors of Linux

Installing Java on Debian flavors (including Ubuntu) of Linux

  1. Go here: Oracle Java JDK Downloads and download the file called: jdk-11.0.6_linux-x64_bin.deb preferably into a directory called Downloads in your home directory.
  2. Open a terminal
  3. Type: cd ~/Downloads to change into your downloads directory
  4. Run the command: sudo apt install jdk-11.0.6_linux-x64_bin.deb
  5. After the install is finished, run the command: update-alternatives --config java
  6. Select the version of java by typing the number beside the one that looks like /usr/lib/jvm/java-11-oracle/bin/java.
  7. Restart

That's it! But that way you have the instructions someplace!

@cmbaughman
Copy link
Author

cmbaughman commented Aug 3, 2020

sudo mkdir -p /var/cache/oracle-jdk11-installer-local
sudo cp jdk-11.0.4_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment