将 Javadoc 添加到 NetBeans 中的库
我刚开始使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
首先,您下载 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.
平台...”
项目
下载到您的机器上
Platforms..."
project
downloaded to your machine
对于 netbeans 7.0
如果您希望添加特定的库 api 文档(例如 JavaFX)
For netbeans 7.0
If you wish to add a specific libray api documentation (Say for example JavaFX)
不确定,但您可以在以下位置引用它: 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!
在 NetBeans 中右键单击您的项目,然后:
然后选择您添加的库并选择编辑,有一个窗口供您在其中添加 javadocs。 您必须首先添加 .jar 文件,否则我被告知您可以添加整个文件夹,它会为您添加 javadocs。 不过,我从来没有用过这种方法。
In NetBeans right click on your project, then:
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.