Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't Eclipse generate javadoc for all classes

I have a project in Eclipse Galileo, there is the Main class, plus other classes and interfaces. But if I generate javadoc, if I click in "all classes Frame" there is only the Main class Javadoc. How do I generate javadoc of the other classes?

like image 421
Ramy Al Zuhouri Avatar asked Jan 12 '12 10:01

Ramy Al Zuhouri


People also ask

How do I create an automatic javadoc?

In the Package Explorer view, select a Java project and click Project > Generate Javadoc with Diagrams > Automatically. In the Generate Javadoc wizard, under Javadoc command, select the Javadoc command (an executable file). Note: Only Oracle JDK Version 1.4.

How do I enable Java documentation in Eclipse?

Step 1 − Open eclipse, select the option Project →Generate Javadoc. Step 2 − Select the javadoc.exe file from the bin folder of java installation directory, select the destination folder for the generated java doc and select Next. finish button.


2 Answers

I had this same problem too until I changed my Javadoc dialog settings. Specifically, in the first dialog window after selecting "Project"->"Generate Javadoc...", make sure there is a check mark next to your project name, not a blue square that indicates that only some of the classes are included. If there is a blue square, click on it until it becomes a check mark.

like image 99
Ellen Spertus Avatar answered Sep 28 '22 16:09

Ellen Spertus


I have had this issue a few times myself. The first issues I hit were the ones previously mentioned.

A) Make sure you have all your classes highlighted. I.E. have a checkbox in the main project instead of a blue box. The blue box indicates only some components of that project are selected.

B) Check the visibility settings. By default the dialog's setting for "Create javadoc for members with visibility:" is set to public. Meaning it will only create docs for public objects. This may or may not be what you want.

After having made both of these mistakes I corrected them and tried again with the same results. Looking at the console it would generate several "Loading source for package ..." messages and then stop. Eclipse wasn't actually trying to re-generate my javadocs.

Some how clicking through next->next until the last page of the dialog and ticking off the check box next to "Open generated index in browser" kicked it in the pants and it generated the full list.

like image 22
TheSporkboy Avatar answered Sep 28 '22 17:09

TheSporkboy