# Attaching source to a library folder

You can attach source to a library folder to enable source-level stepping and browsing of classes contained in a library folder. Unless its source code is attached to a library folder in the workbench, you will not be able to view the source for the library folder.

To attach source to a library folder:

1. Select the project, and from its pop-up menu, select Properties.
   In the Properties dialog, select the Java Build Path page.
2. On the Libraries tab, select the library folder to which you want to attach source.
   Expand the node by clicking on the plus and select the node Source Attachment. Click the Edit button to bring up the source attachment dialog.
3. Fill in the Location path field depending on the location, choose between the workspace, an external file or external folder.
4. Click OK.

Java development tools (JDT)

Attaching source to variables
Creating a new JAR file
Stepping through the execution of a program

Java Build Path
Source Attachment dialog