How to solve "This element has no attached source and the Javadoc could not be found in the attached Javadoc"?

This is for a jar on your classpath in Eclipse, where you have

  1. attached a javadoc zip which Eclipse for some reason dislikes.

  2. NOT attached a valid source jar.

The easiest way is to right-click the jar in question (in the referenced jars, not the physical jar) and choose Preferences -> Javadoc. Here give a correct location (zip/URL) to the correct javadoc. Remember to use the "Validate" button to ensure that it is correctly set up.


This happened to me after I moved my Android files from one PC to a new PC: I simply copied the folder from P:\Android\ to C:\Android\

To fix the error (using Eclipse), right-click the library (in my case android.jar) in your project. Click "Properties", click "Javadoc Location", and fix the Javadoc location path.

For example, I changed it from "file:/P:/Android/android-sdk-windows/docs/reference" to "file:/C:/Android/android-sdk-windows/docs/reference"

Then click "Validate". Then click "Apply". Then click "OK"

now hovering over a method or constant gives me the API info again :-)


Akki's problem also plagued me for much too long. But the fix is super easy.

If you're using Eclipse (Neon), and

If you have Maven (highly recommended) with the Eclipse plugin to handle it, and

If your project is a Maven project (it can be converted into one **),

Then you can easily add Javadocs to all your jar dependencies at once (if you're also using Spring Boot, there may be about 75 of them!) by doing the following:

  • Right click on your project (in the Project Explorer),
  • Hover over "Maven" to get a submenu, and
  • Select "Download JavaDocs".

You should see in the lowest right hand corner a status bar that says "downloading sources and javadocs" and a progress bar.

** To mavenize your project:

  • Right click on it in the Project Explorer,
  • Hover over "Configure" to get a submenu, and
  • Select "Convert to Maven Project".