如何使用 NetBeans 和 Javadoc 制作文档

发布于 2024-12-21 12:09:22 字数 277 浏览 4 评论 0原文

我搜索了一段时间,但一无所获。如何在 NetBeans 7.0.1 中制作文档?

我的文件如下所示:

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

在我的项目属性中,我使用复选框检查了所有选项,而 Javadoc 选项中没有检查任何内容(我尝试使用全局路径使用 -d,但什么也没发生)。 当我进行构建或构建并清理时,我看不到任何有关文档的信息,也看不到项目文件中的任何新内容。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

奈何桥上唱咆哮 2024-12-28 12:09:22

在“项目”窗口中右键单击您的项目,然后单击“生成 Javadoc”

Netbeans 生成 javadoc

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

Netbeans generate javadoc

叫思念不要吵 2024-12-28 12:09:22

更新:对于使用 NetBeans 8.0 的用户,除了已经说明的选项之外,您还可以为文件或包创建 Javadoc。

  • 右键单击文件/包
  • 工具>分析 Javadoc
  • 应该出现“分析器”窗口,指出缺少哪个 Javadoc,并用相应的“为 [方法] 创建缺少的 Javadoc”
  • 选中所需的,单击“修复选定的”。

完毕 :)

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

木格 2024-12-28 12:09:22

这是通过 Netbeans 生成 Javadoc 的另一种方法。

1.- 单击“运行”菜单

2.- 然后转到“生成 Javadoc (...)”

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文