How to attach source or JavaDoc in eclipse for any jar file e.g. JavaFX?

DHRUV BANSAL picture DHRUV BANSAL · Mar 26, 2012 · Viewed 119.3k times · Source

Presently I'm working with JavaFX. Whenever I hover over a method of JavaFX its gives me the following error:

'Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found'

How should I resolve this? How can I attach the javadoc or source so that I could see the description of the methods?

Answer

Dennis Laumen picture Dennis Laumen · Mar 26, 2012
  1. Download jar file containing the JavaDocs.
  2. Open the Build Path page of the project (right click, properties, Java build path).
  3. Open the Libraries tab.
  4. Expand the node of the library in question (JavaFX).
  5. Select JavaDoc location and click edit.
  6. Enter the location to the file which contains the Javadoc (the one you just downloaded).