I upgraded my system to the latest Ubuntu. However, it seems that it's shipped with java 11. I removed it because I need Java 8. However, it seems that Java 8 won't install on my system and I was googling and I stumbled by this: How can I install Jre and jdk 8 on my system?

6

1 Answer

You can download deb packages from old repositories, my answer assumes you have amd64.

Download debs

wget wget wget wget 

Install them

sudo dpkg -i openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jre_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jdk_8u191-b12-2ubuntu0.18.10.1_amd64.deb openjdk-8-jdk-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb 

Install missing dependency packages

sudo apt install -f 
2