How to install Sun Java runtime (JRE)

1. Add non-free packages to apt sources (pico /etc/apt/sources.list)

Add “non-free” behind “main” for all lines in the file. For example, change:

deb http://ftp.debian.org/debian/ squeeze main
deb-src http://ftp.debian.org/debian/ squeeze main

to

deb http://ftp.debian.org/debian/ squeeze main non-free
deb-src http://ftp.debian.org/debian/ squeeze main non-free

2. Update apt

apt-get update

3. Install Sun Java runtime environment (JRE)

apt-get install sun-java6-bin sun-java6-jre

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>