|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

04-09-2008, 07:05 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,545
|
|
|
Attaching the Java documentation
Hi all,
Is that anyone of you know how to attach/include the Java documentation in Netbeans IDE?
Help appreciate.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-09-2008, 09:47 AM
|
 |
Moderator
|
|
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
|
|
I assume you mean the API documentation... Once you've downloaded to your intended location, make a note of where you put it. In Netbeans, follow these steps:
Tools -> Java Platforms.
Click on the JavaDoc tab.
Click Add/Zip folder... and navigate to your documentation download.
Finally click Add/Zip folder and then hit Close.
It should work after that... I put mine in /usr/lib/jvm/java-6-sun/, so from Netbeans I added both the directories /usr/lib/jvm/java-6-sun/docs and/or /usr/lib/jvm/java-6-sun/docs/api just to be safe. Only one is required though. If you use the top level docs, you will get the top level of the whole documentation(pretty obvious), but it includes a wealth of other stuff that is very interesting. Only doing the **/docs/api directory I believe is necessary to use the JavaDoc whilst developing in Netbeans. For example, Alt-F1 while the cursor is on the class in question will open the JavaDoc for that class in the default browser.
Have fun! 
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. !
Got a little Capt'n in you? (drink responsibly)
|
|

04-09-2008, 10:00 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,545
|
|
|
Thanks pal, I'll try it. At the time I have downloaded doc. I'm going to add it now, and I'll let you know something is wrong with me.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-09-2008, 02:33 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,545
|
|
Hi Captain,
As you said I've include the Java documentation in Netbeans. Then I try to search some results. Simply select a keyword and press Shift+F1 keys. It's open the Javadoc Index Search panel on the Netbeans.
I can see my selected key word on the text field also. On the searching box, there is a message displaying, Please wait...
I've wait for a long time, but the result is not displayed. Should I have to do anything more that what I have done up to now.
I don't think my PC configuration is not enough for this. Any comments. 
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-09-2008, 02:49 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,545
|
|
|
Ah, it's not working pal. Got a message after a long time that, No Documentation Found. I've attached an image of my Platform Manager here with. Is there anything is wrong.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-10-2008, 12:24 AM
|
 |
Moderator
|
|
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
|
|
|
Yes, as I noted above- try .../docs/api as well. And I'm pretty sure the correct key combo is Alt-F1.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. !
Got a little Capt'n in you? (drink responsibly)
|
|

04-10-2008, 05:46 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,545
|
|
Ok, I've tried what you say. Added docs/api as well. Still the same pal.
Actually key combination Alt + F1 not response at all. Only Shift + F1 open the search index dialog. 
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-10-2008, 06:33 AM
|
 |
Moderator
|
|
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
|
|
Eranga, right click on any class keyword in a source file. The second option down you'll see you see, "Show Javadoc" which is... Alt+F1 !! If it's not opening JavaDoc with that key combination then you need to reconfigure your hotkey combination for your own system- If Shift+F1 is opening a search dialog then you'll need to change that to Alt+F1 in order for it to work. For my Linux system, Shift+F1 was performing some other function so I changed it and then Alt+F1 opened the JavaDoc.
A couple of links that have repeated what I've said are below:
1) Some blog
2) From the Sun forums
3) A blog from Java.net
4) Have you tried the Netbeans site? (I can't find the url, but it's there on that site too)
But once again, these links are a repeat of what I've already said.. have a look anyways.
Best of luck.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. !
Got a little Capt'n in you? (drink responsibly)
|
|

04-10-2008, 06:41 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,545
|
|
|
Seems something wrong with my IDE. Got an exception when I try to access Java docs. From yesterday I tried, display an exception icon on the status bar. I'm not much worried about it.
Better to install IDE again and see what happened there.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|