# Using the aspectpath

The aspectpath enables aspects from a JAR file or an output directory to be weaved into a project and the results output to the normal location.

Using the aspectpath means that you can write your aspects in a different project and also means that they can be re-used across multiple projects. You may wish to build an aspect library, using the outjar setting or another method. Alternatively you can simply add the output directory of your aspect-containing project to the aspectpath.

To setup your AspectJ project to use the aspectpath:

1. Select the AspectJ project in the Package Explorer
2. Right click and select AspectJ Tools > Configure AspectJ Build Path...
3. Select the Aspect Path tab
4. Add the necessary jar file or class folder (e.g. another project's "bin" directory) using the Add XXX buttons
5. Click OK to close the project properties dialog

Entries added to the aspectpath are also added to the project's Java build path.

Launching a program with an aspectpath or an outjar
Using the inpath
Adding an outjar
Adding an aspectpath