Download the javadocs zip file from the java website (link for Java 7 docs here) .
Now in the eclipse ur go to Prefernces

and select Installed JREs

Now, if you have multiple JREs installed, select the one you are using and click Edit .
Note that the JRE for which the check box is selected is one that default, u may exceed the default value for a particular project.

Expand lib\rt.jar as shown below. And select the Javadoc location property, click the Javadoc location button

NOTE. If you choose JDK (as shown above) then it will automatically (And you probably don't need javadoc-api explicitly). But in the case of a JRE, the source will not be available unless manually specified. (See the following image.) In any case, you can connect javadoc offline. <br />

Now in the javadoc window select the Javadoc in archive radio button and click Browse... , select the javadoc zip file you downloaded earlier

Click OK or Finish to close all open windows (javadoc window, JRE editing window and settings window)
What is it! Now you can use javadoc, Enable javadoc view in Window > Show View > Javadoc.

Just double-click on any class in the java src ur file editor and you will see javadoc for it in the javadoc window as well as in the tooltip.

Hope the problem is resolved. Let me know if you have any problems.
justshams
source share