Debian: Installing Java from repository

2013-05-07 Linux

There are many ways to install Java support in Linux systems. One of the easiest is to do it by adding specific entries to our sources.list file and install Java from repository. Open terminal and edit sources.list:

mcedit /etc/apt/sources.list

If you don't have mcedit then change editor's name to one that you use. Now add these repositories:

deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main

Now save modified file and run:

apt-get update

Final step is to install Java:

apt-get install oracle-java7-installer
Do NOT follow this link or you will be banned from the site!