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-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
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-sunecho 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment
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!
Very usefull tutorial.
thank you.