Ubuntu – How to read OpenJDK 7 documentation (or other -doc) packages

command linedocumentationjavajdkopenjdk

I have installed openjdk-7-doc but I cannot find where to read the documentations of the APIs?

E.g.: How to find/read "String class" API documentation

I prefer GUI-based over command-line but I also want to know how to read them with the command-line too.

Best Answer

Documentation is installed into /usr/share/doc/PACKAGENAME.

There are a few Documentation Viewers in Ubuntu, to help you find it. They are all web-based, though. So you need to run a local web server, and browse to their endpoints.

Off the top of my head: dhelp, dwww, and doc-central.