This article will show you how to install Java 8 on Debian 7 "Wheezy" and Debian 8 "Jessie" systems and derived versions. You need a friend to refer to below.
installation command on Debian 8 Jessie:
sudo sh-c ' echo ' Deb Http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main ">>/etc/apt/sources.list
sudo sh-c ' echo ' deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main ">>/etc/apt/sources.list
sudo apt-key adv--keyserver keyserver.ubuntu.com--recv-keys EEA14886
sudo apt-get update
sudo apt-get install Oracle-java8-installer
Commands installed on Debian 7 Wheezy:
sudo sh-c ' echo ' Deb Http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main ">>/etc/apt/sources.list
sudo sh-c ' echo ' deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main ">>/etc/apt/sources.list
sudo apt-key adv--keyserver keyserver.ubuntu.com--recv-keys EEA14886
sudo apt-get update
sudo apt-get install Oracle-java8-installer
Debain Installing Java