- Firstly, you have to download javadoc api from Oracle's website. This file may be in compressed format having extension with .rar or .zip. Below is the link from where you can download it.
- http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html
- Now place this compressed file wherever you want.
- Open eclipse and navigate to "window" in menu bar and then click on "prefrences"
- Now do exactly what i have done in an image below.
- Now click on installed jre, in my case its C:\Program... and click "edit".
- Now select jre system libraries by pressing Cntrl+a to select all libraries and click javadoc location.
- Now do exactly what i showed you in an image below.
- Keep in mind that you will have to give both paths.
- One is the archive path, that is simply your file's path.
- Second one is that path to the folder "api" that is placed in archive,
Note: If you do not give the second path then it might happen that javadoc help might not show in the tooltip while writing programs in eclipse IDE.