users@glassfish.java.net

Re: JavaMail: How to step into with NetBeans debugger?

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 Dec 2007 16:44:52 PST

NetBeans projects are included for both Mail and Activation (checked out per instructions https://glassfish.dev.java.net/javaee5/mail ) I did note that the projects are not quite set up correctly for this specific use and that may be part of the problem.

Assuming you downloaded and built both of these projects (as mentioned above) you should be able to make the following adjustments to fix your problem.

1. Open the Activation project in NetBeans (File | Open Project, browse to glassfish/activation folder).
2. Right click project node, select "Properties" from popup menu.
3. Go to "Build and Run" pane, change build target to "release"
4. Go to "Output" pane, click <Add Folder>, browse to activation/build/release and add activation.jar. If this jar does not exist in this location, cancel browse dialog, hit OK on Project dialog (to accept changes in #3) and build project. Then repeat step #4 - activation.jar should exist in this location now.

Now repeat steps #1-4 with the Mail project, except that in #4, the folder to browse to is .../mail/builld/release and the jar file is mail.jar.

Finally, in YOUR project, remove your existing library dependencies on mail.jar and activation.jar from wherever you are currently getting them and ADD project dependencies for the above Mail and Activation projects.

Rebuild your project and you should be able to use the debugger to step into either library at source level. The projects are already configured with debug information enabled.
[Message sent by forum member 'peterwx' (peterwx)]

http://forums.java.net/jive/thread.jspa?messageID=250869