Installing Java on Debian Etch

Posted on 2007-03-15

Add/edit the following lines in /etc/apt/sources.list:

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

Then run apt-get update. Now install java with apt-get install sun-java5-jdk (or sun-java6-jdk)

Tags: debian etch java