Last night I’ve learnt Oracle changed the Java licensing which broke all channels of installation typically used in Linux.

Still, you can obtain & install Java and JavaWS free-of-charge manually for personal and developmental use. This is how to proceed:
- Download Java tar.gz from Oracle website. For most users
Linux x64
would be the right choice. - Unpack the tar archive (you may need to change
8u211
into right version)
cd ~/Download
tar xpfz jre-8u211-linux-x64.tar.gz
- Move folder to `/opt/java`
sudo mkdir -p /opt/java
sudo mv jre1.8.0_211 /opt/java
- Remove or rename symbolic links if they exists
which java
which javaws
ls -la /usr/bin/java*
sudo rm /usr/bin/java*
- Link new java version
sudo ln -s /opt/java/jre1.8.0_211/bin/java /usr/bin sudo ln -s /opt/java/jre1.8.0_211/bin/javaws /usr/bin
Now everything should work just fine 🙂