问题
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:
- Right click the project
- Select Properties
- Select "Java Sources
- Classpath" Click "Manage Java Platforms..."
- Click the platform being used by the project
- Click the Javadoc tab
- Click the "Add ZIP/Folder..." button
- 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
- Download javadoc
- Right click project
- Properties
- Libraries
- Manage platforms
- Add Zip/Folder
If you wish to add a specific libray api documentation (Say for example JavaFX)
- Libraries
- Compile Tab - Edit
- 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