Sunday, April 28, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1663  / 2 Years ago, mon, october 31, 2022, 12:36:12

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?


More From » installation

 Answers
5

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


[#38012] Tuesday, November 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peafowkes

Total Points: 356
Total Questions: 102
Total Answers: 117

Location: Lebanon
Member since Tue, Oct 12, 2021
3 Years ago
peafowkes questions
;