The problem
I found that NetBeans 6.7.1 doesn’t allow adding link to Javadocs. It wants to use archive with Javadocs. Also I want to add JDK sources to the NetBeans IDE.
Preconditions:
- NetBeans 6.7.*
- Java SDK 1.6.*
Resolve these problems
Anybody can download this archive from Java website.
Find there Popular downloads section and click Java SE.
You will redirect to Downloads page
In the bottom of the page need to find table Additional Resources.

If your Java SDK contains java sources then don’t need to download Java SE 6 JDK Source Code only Java SE 6 Documentation.
After copying files need to run NetBeans.
In NetBeans click Tools ->Java Platforms. Here select for which Java platform need to add Javadocs and sources. There are 3 tabs:
1. Classes
2. Sources
3. Javadoc

Click on Sources and add zip file with JDK source code.
Click on Javadoc and add zip with Javadocs.
Test it
For Sources. The easiest way is to click Ctrl+O,or menu Navigate->Go to type then type for example String. If String class is visible in NetBeans then it works correct.
For Javadocs. Put cursor on class declaration or on method call. Click Alt+F1 this will open browser with Javadocs or there is second way,need to add Javadocs view Window->Other->Javadocs. After that Javadocs is showing on this view.

Conclusion
Read the source code,it is important.
Without Javadocs you will not to know what this method or class does.
With NetBeans you can easy configure these things.What do you think?
No related posts.


Recent Comments