Installing Java on Debian flavors (including Ubuntu) of Linux
- 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.
- Open a terminal
cd ~/Downloadsto change into your downloads directory
- Run the command:
sudo apt install jdk-11.0.6_linux-x64_bin.deb
- After the install is finished, run the command:
update-alternatives --config java
- Select the version of java by typing the number beside the one that looks like /usr/lib/jvm/java-11-oracle/bin/java.
That's it! But that way you have the instructions someplace!