Sunday, August 19, 2012

Installing and Configuring JavaDoc for Netbeans in Ubuntu

If you encounter such an error, you probably don't have JavaDoc installed or you don't have it configured correctly.
The JavaDoc error
1.Installing JavaDoc

You can install it using command-line or a package manager.

To install it command-line open a terminal and type:
sudo apt-get install openjdk-6-doc
If you want to install it using Ubuntu Software Center, open it and search for openjdk-6-doc and press install:
Installing JavaDoc using the Ubuntu Software Center
2. Configuring JavaDoc

If the previous step didn't solve your problem, open Netbeans and:
1)Open Tools -> Java Platform
2)Go to the JavaDoc tab and add the following path /usr/lib/jvm/default-java/docs
Adding the JavaDoc path
Now when you select a Java method you should its documentation:
Seeing the JavaDoc

No comments:

Post a Comment

Got a question regarding something in the article? Leave me a comment and I will get back at you as soon as I can!

Related Posts Plugin for WordPress, Blogger...
Recommended Post Slide Out For Blogger