Search code examples
javanetbeansjarjavadoc

Adding javadoc to a library included as .jar in NetBeans


I'm using Twitter4j for a Twitter Java client Java FX App. I downloaded the sources and included the .jar to NetBeans after going to: Projects->Libraries->Add Jar/Folder.

I'd like to include the JavaDoc for library but at site they only offer an html.

I've tried:

  • downloading the html and adding the folder as JavaDoc for that jar,
  • downloading and compressing to index.html and the downloaded folder to .jar
  • adding the URL

But got any good results. .

How can I achieve this?


Solution

  • On Maven Central, you can have the javadoc jar.

    When listing the available files for version 2.1.4 there is a:

    twitter4j-core-2.1.4-javadoc.jar
    

    Netbeans should be able to download maven dependencies, including javadoc; at least, IDEA does.