I have downloaded Java API documentation from http://www.oracle.com/technetwork/java/javase/downloads/index.html#docs and have supposedly attached it to Eclipse using the >
if you are using maven:
mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true