Piotr Łużecki
Piotr Łużecki

Reputation: 1041

How to make documentation with NetBeans and Javadoc

I was searching a while, but nothing found. How can i make documentation in NetBeans 7.0.1?

My file looks like:

/** Class Description of MyClass */
public class ScanReader{
}

In my project properties i checked all options with checkbox and nothing in Javadoc options (i tried -d with global path, but nothing happened). When i make build or build and clean i dont see anything about documentation and nothing new in project file either.

Upvotes: 39

Views: 81179

Answers (3)

RominaV
RominaV

Reputation: 3425

Update: for those using NetBeans 8.0, besides the options already stated, you can create Javadoc for a file or package.

  • Right click over file/package
  • Tools > Analyze Javadoc
  • "Analyzer" window should appear, noting which Javadoc is missing, with the corresponding "Create missing Javadoc for [method]"
  • Check the ones you want, click on "Fix Selected".

Done :)

Upvotes: 18

S. Mayol
S. Mayol

Reputation: 2625

This is another way that you can generate your Javadoc through Netbeans.

1.- Click on 'Run' menu

2.- Then go down to 'Generate Javadoc (...)'

enter image description here

Upvotes: 8

Raj
Raj

Reputation: 22956

Right click your project in Project window and click 'Generate Javadoc'

Netbeans generate javadoc

Upvotes: 58

Related Questions