- 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
- Type:
cd ~/Downloads
to 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.
- Restart
That's it! But that way you have the instructions someplace!
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/