将 Javadoc 添加到 NetBeans 中的库

发布于 2024-07-08 11:56:37 字数 100 浏览 7 评论 0原文

我刚开始使用 NetBeans IDE。 当我尝试查看 java API 的文档(例如 System 类)时,它说 javadoc 未安装。 如何安装文档?

I'm new to using the NetBeans IDE. When I try to look at the documentation for say the java API (example, System class), it says that the javadoc is not installed. How do I install the documentation?

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

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

发布评论

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

评论(5

故事↓在人 2024-07-15 11:56:37

首先,您下载 javadoc。

其次,转到“工具”-->“Java 平台”,然后从 Java 平台管理器中选择“Javadoc”选项卡。 单击添加 ZIP/文件夹。

First you download the javadoc.

Second go to Tools-->Java Platforms and select Javadoc tab from the Java Platform Manager. Click the Add ZIP/Folder.

美人迟暮 2024-07-15 11:56:37
  1. 右键单击项目
  2. 选择属性
  3. 选择“Java Sources
  4. Classpath”单击“管理Java
    平台...”
  5. 单击该用户正在使用的平台
    项目
  6. 单击 Javadoc 选项卡
  7. 单击“添加 ZIP/文件夹...”按钮
  8. 选择您拥有的 Javadoc
    下载到您的机器上
  1. Right click the project
  2. Select Properties
  3. Select "Java Sources
  4. Classpath" Click "Manage Java
    Platforms..."
  5. Click the platform being used by the
    project
  6. Click the Javadoc tab
  7. Click the "Add ZIP/Folder..." button
  8. Select the Javadoc you have
    downloaded to your machine
﹏雨一样淡蓝的深情 2024-07-15 11:56:37

对于 netbeans 7.0

  1. 下载 javadoc
  2. 右键单击​​项目
  3. 属性
  4. 管理平台
  5. 添加 Zip/文件夹

如果您希望添加特定的库 api 文档(例如 JavaFX)

  1. 编译选项卡 - 编辑
  2. 浏览并提供 javadoc

For netbeans 7.0

  1. Download javadoc
  2. Right click project
  3. Properties
  4. Libraries
  5. Manage platforms
  6. Add Zip/Folder

If you wish to add a specific libray api documentation (Say for example JavaFX)

  1. Libraries
  2. Compile Tab - Edit
  3. Browse and give the javadoc
三寸金莲 2024-07-15 11:56:37

不确定,但您可以在以下位置引用它: http://java.sun.com/ javase/reference/api.jsp 直到有人能够回答您真正的问题!

Not sure, but you can reference it at: http://java.sun.com/javase/reference/api.jsp until someone is able to answer your real question!

↘紸啶 2024-07-15 11:56:37

在 NetBeans 中右键单击您的项目,然后:

  • Properties
  • Libraries

然后选择您添加的库并选择编辑,有一个窗口供您在其中添加 javadocs。 您必须首先添加 .jar 文件,否则我被告知您可以添加整个文件夹,它会为您添加 javadocs。 不过,我从来没有用过这种方法。

In NetBeans right click on your project, then:

  • Properties
  • Libraries

then select the library you added and select edit, there is a window for you to add your javadocs there. You have to add the .jar file first, or I am told you can add the entire folder and it will add the javadocs for you. I have never had any luck with that method tho.

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