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 precise main
deb-src 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!