Abort installation of JDK documentation under Lenny

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
archives:

    jdk-6u12-docs.zip jdk-6u12-docs-ja.zip

(choose the non-update version if this is the first installation).
Please visit

    http://java.sun.com/javase/downloads/

now and download.  The file should be owned by root.root and be copied
to /tmp.

After looking at Sun’s website, I did not find the version requested. A bug has already been registered for a similar problem :
Bug#509636

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 :
jdk-6u18-docs.zip

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.

Advertisements

One thought on “Abort installation of JDK documentation under Lenny

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s