I have JDK 7 and eclipse JUNO installed on my windows 7 system .Both of them are working fine and eclipse is very well compiling my Java apps and running them as well .
But when I roll-over my cursor on syntax,then it is not showing its description.It says :
This element has no attached source and the Javadoc could not be found in the attached Javadoc.
for every element. I could not find anything useful on the google and also there is no similar post on StackOverflow.
What is the problem?
View Javadocs in the editorHover the mouse over the necessary symbol in the editor. Place the caret at the symbol and press Ctrl+Q (View | Quick Documentation). Press Ctrl+Q again to open this documentation in the Documentation tool window.
Step 1 − Open eclipse, select the option Project →Generate Javadoc. Step 2 − Select the javadoc.exe file from the bin folder of java installation directory, select the destination folder for the generated java doc and select Next. finish button.
Specify location of the javadocprogram on your computer. Typically, it is located under JAVA_HOME's bin directory. For example, C:\Program Files\Java\jdk1. 7.0_21\bin\javadoc.exe, on Windows platform.
Are you sure your eclipse works with a JDK and not a JRE? Go look in Project>Properties>Java Build Path
in the tab libraries
and see if you have linked a JDK or JRE.
For instance here, a JDK is used:
If you only have JRE's installed, you need to install a JDK first (find it here), then in Eclipse go to Windows>Preferences>Java>Installed JREs
and add your JDK there. Then you can add it as a library in your project settings (in the screenshot above)...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With