Accepted answer

you can configure the javadocs with downloading jar, basically javadocs will be referred directly from internet.

complete steps:

  1. open the build path page of the project (right click, properties, java build path).
  2. open the libraries tab.
  3. expand the node of the library in question (javafx).
  4. select javadoc location and click edit.
  5. enter the location to the file which contains the javadoc. specifically for the javafx javadoc enter

for offline javadocs, you can download from :

after clicking accept license agreement you can download


it already in a different thread, just a simple eclipse setting will automatically download javadoc (but, you need to click the method for first time).

where can i download the javadoc for jpa 2.0?


this trick worked for me in eclipse luna (4.4.2): for a jar file i am using (htsjdk), i packed the source in a separate jar file (named htsjdk-2.0.1-src.jar; i could do this since htsjdk is open source) and stored it in the lib-src folder of my project. in my own java source i selected an element i was using from the jar and hit f3 (open declaration). eclipse opened the class file and showed the button "attach source". i clicked the button and pointed to the src jar file i had just put into the lib-src folder. now i get the javadoc when hovering over anything i’m using from the jar.


if you are using maven just do:

mvn eclipse:eclipse -ddownloadsources=true  -ddownloadjavadocs=true


you could specify the online javadoc location for a particular jar in eclipse. this saved my day when i wasn't able to find any downloadable javadocs for kafka.

  1. in the package explorer, right click on the intended jar (under the project's referenced libraries or maven dependences or anything as such) and click on properties.
  2. click on javadoc location.
  3. in the javadoc location path field under javadoc url, enter the url of the online javadocs, which most likely ends with /<version>/javadoc/. for example, kafka 2.3.0's javadocs are located at (you might want to change https to http in your url, as it raised an invalid location warning after clicking on validate... for me).


to attach the java source code with eclipse,

when you install the jdk, you must have selected the option to install the java source files too. this will copy the file in the installation directory. in eclipse, go to window -> preferences -> java -> installed jres -> add and choose the jdk you have in your system. eclipse will now list the jars found in the dialog box. there, select the rt.jar and choose source attachment. by default, this will be pointing to the correct if not, choose the file which you have in your java installation directory. java source attach in eclipse similarly, if you have the javadoc downloaded in your machine, you can configure that too in this dialog box.


in addition to the answer of @dhroove (would have written a comment if i had 50 rep...)

the link has changed to:

at least my eclipse wasn't able to use the link from him.


i couldn't get the "attach source..." method to work either, and i tried many different ways. the javadocs for javafx are installed in program files\oracle\javafx 2.x sdk\docs. another way to install the javadocs is:

  1. right click on the project, select properties
  2. select libraries on the right side of the tab
  3. at the right top side of the tab, you may see "default javafx platform" or something similar. click on the manage platforms button. (you can also install this default platform from here if you haven't got this already).
  4. in the java platform manager tab which appears, select "default javafx platform" on the left side, and then click on the javafx tab on the right side of the window.
  5. one of the entry fields is labeled "javafx javadoc". click the "browse" button next to this field and browse to the installed docs file mentioned above.

hope this helps some people who were as puzzled as i was.


first, if you get the message

note: this element neither has attached source nor attached javadoc and hence no javadoc could be found

then it means that you've already included the external jar needed for your project.

the next step would be to associate the external jar with its javadoc url.

  • go to package explorer, expand your project folder, expand referenced libraries
  • right click the external jar that you want to associate its javadoc with
  • click properties -> javadoc location
  • copy and past the url for the javadoc that you googled online into the javadoc location path
  • click apply

and you're all set!


above all answers are right but there is another method also which is very handy.

pre-condition: your project is maven project or converts it to maven project.

rightclickonproject > configuration > convert in to maven project

enter image description here - now follow the steps:

1. select any jar for which you want to download sources or javadocs.

2. rightclick > maven > download javadoc or download javasources

enter image description here


alternatively you can also,

1) navigate to that method by ctrl+click on the method. the new tab/window will opened with text "source not found" and button "attach source.." in it
2) click the button "attach source.."
3) new window pops up. click the button "external folder"
4) locate the javafx javadoc folder. if you are on windows with default installation settings, then the folder path is c:\program files\oracle\javafx 2.0 sdk\docs


neither project/properties/javadoc location nor project/properties/java build path/libraries had not helped me until i picked and moved up in "order and export" tab of "java build path" "android dependencies" and added-in-library.jar. i hope it will be useful.


  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).

Related Query

More Query from same tag