Search code examples
javaeclipsejavadoc

Missing basic JavaDoc in Eclipse


Up to a few days ago, Eclipse was working fine in locating the javadoc for base classes such as Java.io.File. Recently, though, hovering over these classes only yields a message indicating that the source and javadoc are missing:

"Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc."

I couldn't for the life of me locate the option that would let me reselect the location of the basic documentation. Does anyone know how to fix this?


Solution

  • Expand your JRE System library and find rt.jar (classes.jar for Mac OS X). Right click, and select 'Properties'.

    classes.jar

    You can then specify the Javadoc location (as well as the source location).

    properties