How to make documentation with NetBeans and Javadoc

末鹿安然 提交于 2019-11-28 23:40:34

问题


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:


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




回答2:


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




回答3:


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

1.- Click on 'Run' menu

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



来源:https://stackoverflow.com/questions/8493352/how-to-make-documentation-with-netbeans-and-javadoc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!