Instalación de JAVA

sudo apt-get update
sudo apt-get upgrade -y
#entorno de ejecución de Java (JRE).
sudo apt-get install default-jre
#JDK Java Development Kit
sudo apt-get install default-jdk

apt-get install software-properties-common
sudo apt-get update
sudo apt-get upgrade
sudo add-apt-repository ppa:webupd8team/java

sudo apt-get install oracle-java8-installer