Attach Javadoc to Library in NetBeans

此生再无相见时 提交于 2019-12-10 17:45:31

问题


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?


回答1:


  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



回答2:


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.




回答3:


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



回答4:


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!




回答5:


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.



来源:https://stackoverflow.com/questions/230552/attach-javadoc-to-library-in-netbeans

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