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 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
add comment

2 Answers

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
add comment

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:

file:///usr/share/doc/openjdk-7-jre-headless/api/index.html

Hope this helps.

share|improve this answer
add comment

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.