How to install Java and JavaWS in Linux

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:

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 🙂

3 thoughts on “How to install Java and JavaWS in Linux

  1. After a lot of searches on web, and several trials with IcedTea, Openwebstart and others, your tutorial was the only one that solves my problem. Thank you A LOT.

  2. Does this tutorial automatically open jnlp or js files when downloaded from a browser? Or do you have to do something else?

Leave a Reply

Your email address will not be published. Required fields are marked *