Results 1 to 6 of 6

Thread: Java API source

  1. #1
    Mr.Beans's Avatar
    Mr.Beans is offline Senior Member
    Join Date
    Apr 2009
    Location
    Virginia Beach, Virginia
    Posts
    149
    Rep Power
    0

    Default Java API source

    When I'm using the Java API I like to be able to go to the source files to see how the classes were implemented. For some reason netbeans 6.5 on linux isn't linked to a jar file which contains the source code. Where can I find such a file link netbeans to it. I've tried searching sun's site, but to no avail.

    Thanks,

    Joseph

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,244
    Rep Power
    19

    Default

    Look in your jdk folder for src.zip. This can be added to NetBeans favorites.

    db

  3. #3
    Mr.Beans's Avatar
    Mr.Beans is offline Senior Member
    Join Date
    Apr 2009
    Location
    Virginia Beach, Virginia
    Posts
    149
    Rep Power
    0

    Default

    I figured out the problem was that I needed to install the java source package in ubuntu. I had looked in the jdk folder, however the src.zip archive wasn't there prior to the installation of the source package. After I installed that I linked Netbeans to it and all was fine.

    Thanks for your help,

    Beans

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

    Default

    I think that NetBeans not automatically linked API in installation. You have to do it manually. It happen for me when I'm installing NetBeans 5.5.

  5. #5
    Mr.Beans's Avatar
    Mr.Beans is offline Senior Member
    Join Date
    Apr 2009
    Location
    Virginia Beach, Virginia
    Posts
    149
    Rep Power
    0

    Default

    I installed netbeans 6.5. I think it tried to link to the api (and successfully linked to the jdk jar files). However, I didn't have the src.zip in the file so Netbeans would not have been able to correctly link to the source (since it wasn't there). I'm sure if I had the java-6-sun-src (something like that) package installed before I installed Netbeans, it would have linked to it.

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

    Default

    Quite misguide earlier on my post, sorry about that. Actually the JDK source files are automatically linked with the NetBeans 6.5, but not the API documentation.
    On the installation, you prompt for an option to select the Java installation folder in your system.

Similar Threads

  1. Open Source Java API for OCR
    By SSam Varghese in forum Advanced Java
    Replies: 1
    Last Post: 02-26-2009, 04:24 PM
  2. Replies: 0
    Last Post: 01-29-2009, 10:43 AM
  3. Can we Obtain Java Source Code?
    By tornado in forum New To Java
    Replies: 7
    Last Post: 12-10-2008, 07:23 PM
  4. Replies: 1
    Last Post: 11-28-2008, 06:27 PM
  5. A Java reference source for a quick look
    By tapies in forum New To Java
    Replies: 6
    Last Post: 10-03-2008, 06:01 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
  •