Home > IDEs, NetBeans, NetBeans tutorial > Tune NetBeans IDE for showing JDK sources and Javadocs.

Tune NetBeans IDE for showing JDK sources and Javadocs.

We moved. Please visit this link for this post.
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.


  • 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.


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?


  1. Rehan
    February 20, 2010 at 1:23 am

    Thanks for this information. I have setup the JDK1.6 javadoc within NetBeans. Now, why can I see javadoc for String and not StringList?

    • February 20, 2010 at 6:28 pm

      Hi Rehan.
      There is no StringList in JDK 1.6. It seems that you use additional library. If yes, you need to add to this library own javadoc.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: