38

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.

Raj
  • 22,346
  • 14
  • 99
  • 142
Piotr Łużecki
  • 1,031
  • 4
  • 17
  • 33

3 Answers3

57

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

Netbeans generate javadoc

Raj
  • 22,346
  • 14
  • 99
  • 142
17

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

RominaV
  • 3,335
  • 1
  • 29
  • 59
7

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

S. Mayol
  • 2,565
  • 2
  • 27
  • 34