Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 2 down vote accepted

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.

share|improve this answer

If you are looking for the API Specification you can use a terminal (or Alt+F2) to open it:

gnome-open /usr/share/doc/openjdk-7-jre-headless/api/index.html

this should open the Java API with your predefined browser. If you don't want to use a terminal, you can paste the link in any browser and make a bookmark of it:


Hope this helps.

share|improve this answer

Your Answer


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.