This element neither have attached source nor attached Javadoc and hence no Javadoc could be found
Eclipse has a direct view of the Java documentation and class library source code, but it has to be added manually, below is how to add Java Documents and class library source code in eclipse to summarize.
1. Window->pereferences ... Open the Parameter Selection dialog box, expand the Java node, click Installed JREs, and the right window will display the JRE that has already been loaded.
2. Select the JRE version you want to set up, click "Edit" to eject the JRE editing window
3. Add Javadoc: Select All packages under JRE system libraries and click the Javadoc location button on the right to eject the Javadoc settings window. Select the "Javadoc URL" Radio box, click the "Browse" button, select the Docs/api directory, then click "OK"
4. Add Source: Select All packages under JRE system libraries and click the "Source Attachment" button on the right to eject the source Attachment configuration window. Click the "External File" button, select the Src.zip file in the Java installation directory, then click "OK"
5. The following is OK, OK on the line.
After adding Javadoc and source, in Eclipse, using the shortcut key "Shift+f2", you can quickly bring up the API documentation for the selected class, use the quick-build F3 (or right-click on the class and view the declaration now) to open the source file for the class.
Here's a simple way to handle it:
Project-----Properties----Java Build Path--add lib dialog box select JRE System Library---The alternate JRE line, point installed JRE, in the New dialog box, Click Add------Choose Standard VM--JRE Home Select the JRE folder under the folder of the JDK you are installing now like mine is D:\Program File\java\jdk1.6.0_32\jre
This element neither have attached source nor attached Javadoc and hence no Javadoc could be found