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 http://mirrors.kernel.org/debian/ lenny main non-freedeb-src http://mirrors.kernel.org/debian/ lenny main non-free
deb http://security.debian.org/ lenny/updates main non-freedeb-src http://security.debian.org/ lenny/updates main non-free
Run
$ 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
comments powered by Disqus