Fortunately the WebUpd8 PPA provides us a super easy way to install Oracle Java on a Ubuntu box.
Many thanks! :-)
All commands needs to run as user root
or via sudo
.
apt-add-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer
That's it.