39

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.

1
  • 2
    u want to generate javadoc HTML files? Commented Dec 13, 2011 at 17:30

3 Answers 3

58

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

Netbeans generate javadoc

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks, but how can i do it only for 1 file?
That is not possible, I think. But once it generates for all the classes, goto your project folder/dist/javadoc/package-name and open the HTML of your required class
How can I view the document after it has been created?
@JohnHogan Open the generated HTML file in your browser
18

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

Comments

8

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

3 Comments

Where is the resulting HTML document stored?
@kurdtpage It's in the project's "dist" folder.
That threw me off. I was expecting the doc folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.