1. Download javadocs:
Java 6: http://docs.oracle.com/javase/6/docs/
Java 7: http://docs.oracle.com/javase/7/docs/
Download the javadocs zip file and put in any where that you want.
2. Config eclipse:
Select Preferences |
Select Installed JREs |
Select the java version that you want to add docs and then select Edit |
Select rt.jar package and then select Javadoc Location |
Select Javadoc in archive and browse the zip that you downloaded |