use the following commands to add the java repository to linux

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

taken from http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html:

  • add following lines to /etc/apt/sources.list.d/webupd8team-java.list
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main 
  • run apt-get update
  • run apt-get install oracle-java8-installer

That’s it! enjoy 🙂

Comments are closed, but trackbacks and pingbacks are open.