After installing all the related Sun Java packages with this command :
root@localhost:~# apt-get install sun-java6-bin sun-java6-doc sun-java6-fonts sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-source
I got this message :
This package is an installer package, it does not actually contain the
JDK documentation. You will need to go download one of the
(choose the non-update version if this is the first installation).
now and download. The file should be owned by root.root and be copied
After looking at Sun’s website, I did not find the version requested. A bug has already been registered for a similar problem :
The workaround is easy to apply. Visit Sun’s Java website : http://java.sun.com/javase/downloads/index.jsp
Go down this page and look for “Java SE 6 Documentation“. Click on “Download“. Then just follow the links and you will be able to download this file :
Execute the following commands to make the official Java documentation well installed on your Lenny :
root@localhost:~#chown root:root jdk-6u18-docs.zip
root@localhost:~#mv jdk-6u18-docs.zip jdk-6u12-docs.zip
root@localhost:~# apt-get update && apt-get upgrade
You will be told that the package sun-java6-doc has not been installed properly. Say yes to reinstall it. Normally, everything should go well now and you will get the message below :
/tmp/jdk-6u12-docs.zip has been unpacked and installed.
You can now delete it, if you wish.