Java Ubuntu

It's can be useful install java oracle version using apt.

Installation on ubuntu 14.04

source http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Also ensure your JAVA_HOME variable has been set to:
/usr/lib/jvm/java-8-oracle

Installation on ubuntu 12.04

Many ways to do this described here https://help.ubuntu.com/community/Java

I have choose this http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version

Remove old version

 sudo apt-get purge oracle-java7-installer*
 sudo apt-get install ppa-purge
 sudo ppa-purge ppa:eugenesan/java
 sudo apt-get clean
 sudo apt-get update
Salvo diversa indicazione, il contenuto di questa pagina è sotto licenza Creative Commons Attribution-ShareAlike 3.0 License