Stephen Reese

The Sun Java JDK is available in the Debian Lenny non-free repository, therefore you must modify /etc/apt/sources.list:

$ sudo vi /etc/apt/sources.list

Add non-free to the Debian Lenny repositories:

deb lenny main non-freedeb-src lenny main non-free
deb lenny/updates main non-freedeb-src lenny/updates main non-free


$ sudo apt-get update

Install the Java JDK as follows:

$ sudo apt-get install sun-java6-jdk

Make it available system wide:

$ sudo update-java-alternatives -s java-6-sun echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment


comments powered by Disqus