Attaching source to a class path variable

When attaching source for a class path variable entry, both the path to the Archive and the Root Path must be defined by variables. Follow these steps to make a source attachment for a variable:
  1. Select the project, and from its pop-up menu, select Properties.
  2. In the Properties dialog, select the Java Build Path page.
     
  3. On the Libraries tab, select the class path variable to which you want to attach source.
  4. Click the Attach Source button to bring up the source attachment page.
     
  5. In Archive Variable Path field, use a variable to define the location of the archive. Use the Variable button to select an existing variable and the Browse button to append an optional path extension.

  6.  
  7. In the Root Variable Path field, enter a variable that stores the root path prefix of the JAR file.

  8. Click Variable to select an existing variable or Browse to append an optional path extension.
     
  9. Click OK.
Related concepts

Classpath variables

Related tasks

Adding a variable class path entry
Defining a class path variable
Deleting a class path variable

Related reference

Classpath Variables preference page
Source Attachment dialog
 

Copyright IBM Corporation 2000, 2002. All Rights Reserved.