4

I'm installing the Java JDK manually, by downloading the JDK tar archive from java.com, extracting it into /usr/lib/jvm/jdk1.6.0_32 (also the OpenJDK installation location via apt), and using update-alternatives to add all the java binaries to /usr/bin.

I'd also like to the install the Java man pages system-wide in /usr/lib/jvm/jdk1.6.0_32/man/man1, preferably using that same update-alternatives script, but not sure how.

I've tried soft linking /usr/lib/jvm/jdk1.6.0_32/man/man1 as /usr/share/man/man.java, but no luck, man java doesn't work. Running man --update and mandb don't seem to do anything.

Anyone know how to manually install man packages?

2
  • Found one solution. Soft link /usr/lib/jvm/jdk1.6.0_32/man/man1 as /usr/share/man/man10 (10 is next in the list, there is already /usr/share/man/man1-man9). Is that the cannonical way of manually installing man pages, or is there something else? Not sure what the naming convention is for /usr/share/man; why does man10 work but not man.java?
    – bgibson
    May 30, 2012 at 5:08
  • Another observation, linking as /usr/share/man/man20 doesn't work either.
    – bgibson
    May 30, 2012 at 5:20

2 Answers 2

3

This works, not sure if this is the canonical way though:

Soft link /usr/lib/jvm/jdk1.6.0_32/man/man1 as /usr/share/man/man10 (10 is next in the list, there is already /usr/share/man/man1-man9).

Not sure what the naming convention is for /usr/share/man; why does man10 work but not man.java or man20? Linking as /usr/share/man/man20 doesn't work either.

See update-alternatives script for full example (last line for man page link).

2

Download the DOC from here and open with the Software center or with this command from terminal

sudo dpkg -i <path to file_name>
1
  • 1
    Thanks but I don't want the OpenJDK docs. I'm required to use Oracle JDK for compatibility reasons, and want the corresponding Oracle JDK docs, which don't have a deb package version.
    – bgibson
    May 30, 2012 at 5:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .