I am using a third party library, i have included into my project. It contains classes for the application, but no sources, or Javadoc. As expected, mouse-over imported object shows no javadoc.
Note: This element neither has attached source nor attached
Javadoc and hence no Javadoc could be found.
After googling for a bit, i came across 3 versions of jars
- app.jar
- app-sources.jar
- app-javadoc.jar
It appears and app-javadoc.jar contains nothing but html pages and app-sources contans nothing but .java files (with Javadoc comments).
What i did:
-
Added all 3 files to the list of
“Referenced Libraries”. After
“refresh”ing the project, javadoc
still does not show. -
Additionally, under properties for
the project, i pointed “Javadoc
location path” to unzipped content of
app-javadoc.jar (validated ok)
Still, after having done all that, my Eclipse fails to display javadoc.
Please advise
Thank you.
Add only app.jar to the Referenced Libraries.
then, go to Project Explorer, right click on the jar file-> Properties -> Javadoc Location and add Javadoc jar location (app-javadoc.jar).
If you want to also browse the source code, then go to ‘Java Source attachment’ in the same dialog box and add the app-sources.jar there.