Please try the following:
sudo apt install openjdk8-jre
then
sudo update-alternatives --config java
and select the java-8 option.
Please try the following:
sudo apt install openjdk8-jre
then
sudo update-alternatives --config java
and select the java-8 option.