Is there an integration of any other off line way to get the Java API docs?
This worked for me (Java 8):
Go to your JDK installation. (C:\Program Files\Java\jdk1.8.0_66
for me).
Unzip the src.zip
file (becomes C:\Program Files\Java\jdk1.8.0_66\src\
for me).
In the Eclipse editor window: CTRL + Click
on a java.lang
library class. (something like String
).
Eclipse will complain Source not found
and tell you that you don't have the source.
Click Attach source
-> External Location
-> External Folder
.
Find your source folder (C:\Program Files\Java\jdk1.8.0_66\src\
for me).
Click OK
-> OK
.
Enjoy.
If you have no internet connection on your development machine, or if you want to stop the Web traffic for accessing the documentation, you can store the documentation on your local hard drive.
Download
header.Window
menu, then select Preferences
.jre
, and then click Installed JREs
.java
, or another term like jre1.8.0_181
.
Standard VM
.Edit
button.JRE system libraries
section, select the library ending with rt.jar
, and click the Javadoc Location...
button.Javadoc in archive
radio button.Archive path
field, enter or Browse
for your full documentation path (e.g. /home/docs/jdk-8u181-doc.zip
).Path within archive
field, enter or Browse
for the location of the api/index.html
file (e.g. docs/api
).Validate
button to ensure everything is set correctly.OK
button, then the Finish
button, and finally the Apply & Close
button. Your documentation is now linked to the file you specified.Just a quick contribution: Instead of selecting 7 "Javadoc in archive", I changed the javadoc location path (URL) to my directory, where I have unzipped my doc. Hope its help!!!