-
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
-
Look in your jdk folder for src.zip. This can be added to NetBeans favorites.
db
-
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
-
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.
-
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.
-
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.