Debian: Install Sun Java Runtime (JRE)

by on Jun.10, 2012, under Linux (Ubuntu)

In this brief tutorial I am going to explain how to install the Sun/Oracle Java Runtime Environment (JRE) under Debian/Ubuntu.

First of all you’ve to add the non-free repository to your sources.lst:

vim /etc/apt/sources.list

add the following line:

deb squeeze main non-free

(or add the non-free part to your main repository)

Now you’ve to update aptitude using the following command:

apt-get update

Install the Java Runtime Environment using the following command:

apt-get install sun-java6-jre

If you’d like to install the Java Development Kit (JDK) instead, you’d have to use:

apt-get install sun-java6-jdk

If you also need the Java Plugin for web browsers such as Mozilla Firefox, execute the following command as well:

apt-get install sun-java6-plugin

You have to restart the web browser in order to make the Java plugin work.

Leave a Reply


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!