How to connect javadoc for jar in eclipse?

Is there a way to connect javadoc for struts.jar in Eclipse, for example, we attach it for the Java kernel, which is a zip file distributed under the JDK?

+7
source share
3 answers

First we need to download the source files for any jar file that we use. After that, we can attach this zip or jar file to the eclipse by double-clicking on the name of the java class used, then clicking on the link to the java source and then selecting the corresponding jar and zip of the source file. It may happen that sometimes after attaching the source zip or jar file, the java source does not open in this case, you can create a jar using the jar command from the command line, taking the package you want to include. And after creating this jar, we can attach it to the previous step. The source file will definitely be open.

+1
source

To add a document to the library:

Project (Right Click) → Properties-> Build Path → Libraries → JRE System Library, then expand each API and add an API location.

Now select the library for which you want to add documents.

Click "Edit", then go to the browser to select the directory for the "Documentation" directory. Please try using only the directory, not the index.html file.

+3
source

Right-click on the bank, click Properties, then fill in the javadoc location.

+2
source

All Articles