Install oracle java on Ubuntu 16.04

To avoid this error:

ERROR:   Couldn't find a java virtual machine,
         define JAVACMD, JAVA_BINDIR, JAVA_HOME or PATH.

You can add oracle java to your repositories:

sudo add-apt-repository ppa:webupd8team/java 
sudo apt-get update
sudo apt-get install oracle-java9-installer -y

Comments

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

How to fix Android when developer options are not available for this user

Webcam streaming throught VLC with YUY2 compatibility