Wednesday, January 14, 2009

[Java] Install Java 6 doc on Ubuntu 8.10 aka Intrepid Ibex

Ubuntu 8.10 doesnt provide the java 6 doc but an installer that will take care of unzipping and copying the java doc in the right location.

If you want to install the java 6 doc on Ubuntu 8.10, you will have to:
  • download the doc package at http://java.sun.com/javase/downloads/index.jsp. There, click on the "Download" button in the "Java SE 6 Documentation" section. The name of the just-downloaded file will look like jdk-6u10-docs.zip
  • Copy this file under /tmp
  • Rename it to jdk-6-doc.zip
  • Change the ownership of the zip to root
    chown root:root jdk-6-doc.zip
  • Run sudo apt-get install sun-java6-doc
  • Et Voila!

No comments: