Oracle Java 8 (JDK8 and JRE8) v Ubuntu

sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
andrei@andrei-desktop:~$ java -version java version "1.8.0-ea" Java(TM) SE Runtime Environment (build 1.8.0-ea-b54) Java HotSpot(TM) Server VM (build 24.0-b21, mixed mode)
andrei@andrei-desktop:~$ javac -version javac 1.8.0-ea
sudo update-java-alternatives -s java-7-oracle
sudo update-java-alternatives -s java-8-oracle

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

Oracle Java 8 (JDK8 and JRE8) v Ubuntu