Results 1 to 9 of 9
  1. #1
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default Show Javadoc isn't Working

    Hello-
    I enjoy the "show javadoc" feature. You put the cursor over the name of a java class in your code, e.g., one of the swing classes. Right click and click on "show javadoc," and it takes you to your browser and the docs on that class. Very cool.

    Then I re-installed NetBeans.

    Now, "show javadoc" doesn't work any more. It beeps and says "cannot perform show javadoc here," even though I'm clicking at a valid location (on JList in a declaration of a JList: private javax.swing.JList colorMode;).

    Can anyone think of what may be going on?
    Thanks.
    -Scott

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    6

    Default

    You have to have the javadocs downloaded, and point to them in the right place.

    NetBeans for unknown reasons defaults to this unusable setup.

    With NB6.5, you go to Tools -> Java Platforms -> then click the Javadocs tab
    and go from there.

    Please send an email to the netbeans user list
    nbusers@netbeans.org
    and comment that the defaults are stupid and the documenttion nearly non-existant

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  4. #4
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default Installed the Javadocs

    Yes, that worked. Thanks for the help. I will send an email to netbeans.org.

    I downloaded the Java SE 6 API specs, unzipped them, and installed them in netbeans. I think the docs come up faster if you unzip them. Point to the "docs" folder.

    Finding the API specs for download can be tricky, but all you have to do is go into java.sun.com and hover over "Downloads" at the top, and click on "Java SE," and you'll see the documentation download.

    -Scott

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Actually no need to unzip the package. There is no huge time difference to pop-up zipped an un-zipped packages. Only thing it you can save your HDD space, and use for some other tasks.

  6. #6
    n2nbnj is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default "Cannot perform Show Javadoc here" again

    Hi,
    I have the same problem (with JDK 1.6 on Mac OS 10.5 and NetBeans 6.7.1).

    I looked at many sites and have found many solutions... none works for me.


    Specifically:
    1) on Mac OS 10.5, installing java 1.6 does not put any docs there:
    Java Code:
    @: /System/Library/Frameworks/JavaVM.framework/Versions> ls -lart
    drwxr-xr-x   3 root  wheel   102 Jan 20  2009 1.3.1
    drwxr-xr-x   8 root  wheel   272 May 21 02:34 1.4.2
    drwxr-xr-x   8 root  wheel   272 May 21 02:34 1.5.0
    drwxr-xr-x   9 root  wheel   306 Nov 17 10:45 1.6.0
    lrwxr-xr-x   1 root  wheel     5 Nov 18 13:14 1.3 -> 1.3.1
    lrwxr-xr-x   1 root  wheel     5 Nov 18 13:15 1.4 -> 1.4.2
    lrwxr-xr-x   1 root  wheel     5 Nov 18 13:15 1.5 -> 1.5.0
    lrwxr-xr-x   1 root  wheel     5 Nov 18 13:15 1.6 -> 1.6.0
    lrwxr-xr-x   1 root  wheel     1 Nov 18 13:15 Current -> A
    drwxr-xr-x   9 root  wheel   306 Nov 18 13:15 A
    drwxr-xr-x  12 root  wheel   408 Nov 18 13:15 ..
    lrwxr-xr-x   1 root  wheel     3 Nov 18 13:30 CurrentJDK -> 1.6
    drwxr-xr-x  14 root  wheel   476 Nov 18 13:30 .
    
    @: /System/Library/Frameworks/JavaVM.framework/Versions> find . -name "docs.*"
    ./1.4.2/Home/docs.jar
    ./1.5.0/Home/docs.jar
    
    @: /System/Library/Frameworks/JavaVM.framework/Versions>
    2) Pointing netbeans to older docs doesn't change anything.

    Actually, what I did is I added
    Java Code:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/docs.jar 
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/appledocs.jar
    to "Platform Manager" / JDK 1.6 / "javadoc".
    Did I do it wrong?

    // As fishtoprecords pointed out here, "documentation" (from my perspective) does not exist. To me (a newbee to both java and netbeans), the following:
    "download javadocs" or "zip folder of javadocs"
    -- is too broad.
    -- Maybe I should've added the folder instead of jars?
    -- Where can I download the 1.6 docs and how do they look like (for Mac)? -is it a *zip? a *jar? a bunch of html files?...

    (Of course the very fact that the Apple distribution of 1.6 doesn't include docs and also the fact there's no easy way to set 1.6 as the default, is very frustrating by itself).

    Please help if you know the solution for Mac with 1.6.

    Thanks!:-)

  7. #7
    aaroncarpet's Avatar
    aaroncarpet is offline Senior Member
    Join Date
    Nov 2009
    Location
    California
    Posts
    147
    Rep Power
    0

    Default

    I prefer coding in textpad and using the api versus all the netbeans gadgets....reading the api actually helps you build your logic to the conformations of java

  8. #8
    n2nbnj is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default Totally agree, but... // Problem SOLVED

    >> prefer coding in textpad and using the api versus all the netbeans gadgets....reading the api actually helps you build your logic to the conformations of java

    I totally agree (my favorite IDE is emacs), but... I didn't do Java for years, now I need to quickly become fluent again, and without any documentation it's just harder.

    Actually I receive a solution on Sun forum (cannot post a link as I have to have a post count 20 or greater, -- LOL):
    those having the same issue can find it on google (search for

    "Show Javadoc" not working in NetBeans 6.7 // JDK 1.6 on Mac OS 10.5 site:sun.com

    ).


    Thanks all!

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. Replies: 8
    Last Post: 05-28-2008, 07:00 AM
  2. JavaDoc
    By javarishi in forum Eclipse
    Replies: 1
    Last Post: 04-10-2008, 08:41 AM
  3. netbeans 6.0 not show commpunent or show blank page
    By fahimaamir in forum NetBeans
    Replies: 1
    Last Post: 01-26-2008, 06:20 AM
  4. what can I do with javadoc
    By christina in forum Advanced Java
    Replies: 1
    Last Post: 07-25-2007, 11:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •