Reputation: 603
I am using Eclipse IDE for Java Developers
Version: Helios Service Release 2 Build id: 20110218-0911
I have a problem similar to this stackoverflow question
On reading other questions, I have found that the error
This element has no attached source and the Javadoc could not be found in the attached Javadoc
is caused by Eclipse not being able to locate the javadoc file.
I checked, I have both JDK and JRE in c program files / java location. I have src.zip file at C:\Program Files\Java\jdk1.6.0_30, I have src lib file at C:/Program Files/Java/jre6/lib/rt.jar
Both these paths are set in classpath variables.
Installed JRE is referring to C:\Program Files\Java\jre6 and javadoc location for all JRE system libraries is set to http://java.sun.com/javase/6/docs/api/
But still I am not able to see the javadoc on mouse hover of any java or android methods
Do you have any advice on how to get this working?
Upvotes: 3
Views: 23926
Reputation: 426
Hope this answers your question.
Upvotes: 0
Reputation: 1908
Had the same problem with Eclipse Mars (4.5.1). I needed to assign the Source attachment of rt.jar to the src.zip manually:
Upvotes: 2
Reputation: 49545
You seem to be developing an Android App in Eclipse. When you have the ADT plugins installed you are no longer using the standard Java JDKs, but rather the android versions.
To fix this you'll want to Install "Documentation for Android SDK" package using Android SDK and AVD Manager. This will place the documentation folder into the android sdk location suitable for eclipse + the ADT plugins to supply you javadoc help popups.
Upvotes: 2
Reputation: 289
In Eclipse, go to Window, Preferences, and navigate to the javadoc options or type javadoc where it says 'type filter text'. Check if the options 'Process Javadoc comments' is checked. It may ask you to do a full rebuild of your projects after you check/uncheck that option.
Upvotes: 8