This is the way I use to install it on a Debian Linux. It should work also with Ubuntu and Debian based systems with APT.
All the steps should be executed as superuser or though the command 'sudo'.
Add the repositories and update:
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update
Then select the Java version you want to install:
- Java 6
apt-get install oracle-java6-installer - Java 7
apt-get install oracle-java7-installer apt-get install oracle-java8-installer
And that's all.
No comments:
Post a Comment