Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
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? –  Kurtosis May 30 '12 at 5:08
    
Another observation, linking as /usr/share/man/man20 doesn't work either. –  Kurtosis May 30 '12 at 5:20

2 Answers 2

up vote 3 down vote accepted

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).

share|improve this answer

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

sudo dpkg -i <path to file_name>
share|improve this answer
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. –  Kurtosis May 30 '12 at 5:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.