Debian: Install Java

From COSSAN Wiki
Jump to: navigation, search

This small guide shows how to install the original Sun Java 2 Platform Standard Edition 5.0 JRE (Java Runtime Environment) and JDK (Java Developer Kit) on Debian 4.0 Etch

The original Sun Java 2 is available in the ‘non-free’ section of the Debian repositories. To enable this section first add the non-free repository to the apt sources file - the /etc/apt/sources.list.

vi /etc/apt/sources.list

and add the following line

deb http://ftp.us.debian.org/debian/ etch main contrib non-free

Now, update aptitude:

aptitude update

Then install the Java debian packages.

aptitude install sun-java5-jre

See also