Installing Sun Java on Debian Lenny
The Sun Java JDK is available in the Debian Lenny non-free repository, therefore you must modify /etc/apt/sources.list...
vi /etc/apt/sources.list
and add non-free to the Debian Lenny repositories:
deb http://mirrors.kernel.org/debian/ lenny main non-free
deb-src http://mirrors.kernel.org/debian/ lenny main non-free
deb http://security.debian.org/ lenny/updates main non-free
deb-src http://security.debian.org/ lenny/updates main non-free
Run
apt-get update
Install the Java JDK as follows:
apt-get install sun-java6-jdk
Make it available system wide:
update-java-alternatives -s java-6-sun
echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment
9 Comments:
Thank you for instructions on installing Sun Java 1.6. They are the only instructions that have worked for me in Debian 5.0.
-Scott D.
Glad to hear that!
Same here! Thanks for the great post Stephen.
D'oh! Ubuntu made me lazy by including the non-free repositories. Thanks for reminding me now that I am back on Debian (Ubuntu is becoming everything that made me not like Windows OS)....
David, glad you were able to rectify the problem!
Thank you! I finally managed to install the Android plugin in Eclipse without it naging about some "thrust" thingy. It was all about using the wrong JRE. I still would like to know why it does not work with OpenJDK. But I'm glad it works.
Thanks for this article.
Simple and clear, everything worked out.
All the best!
Direct and concise. Thanks for the quick recipe :-)
Fantastic! Great help, thanks!
Post a Comment
<< Home