Attach source code to a Netbeans Library Wrapper Module
Friday, February 22nd, 2008I´m new in NetBeans and today I´ve been struggling a couple of hours with the simple task of attaching the source code for an external JAR (NetBean Library Wrapper Module).
I´ve been trying to find in google how to do it without success until I reached this post in the netbeans-users mailing list.
Then I realized that I should been looking into the NetBeans Help first. The entry at Help -> Help contents -> Java Applications -> Debugging Applications -> Attaching Source Code to a JAR File explains how to do it.
first go to Tools->Libraries to open the Library Manager. Then click on New Library. Give it a name and select the jar. But you should be careful when adding the Library, though. You must point to the JAR file INSIDE your module library wrapper (that´s <module library wrapper folder>/release/modules/ext/) NOT to the original location of the JAR. (As pointed out in the Help -> Help contents -> Netbeans Modules -> Getting started -> Module and Rich-Client Application Tasks: Quick Reference -> Attach source code to libraries for debugging.)
Then you should add the library´s source folder in the Source tab of the Library in the Library Manager (you can point to the Javadoc as well).



