Skip to content

Instantly share code, notes, and snippets.

@cmbaughman
Created May 14, 2020 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmbaughman/ccfabb2345eca88fd8f78682e8e30116 to your computer and use it in GitHub Desktop.
Save cmbaughman/ccfabb2345eca88fd8f78682e8e30116 to your computer and use it in GitHub Desktop.
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

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