# Using the inpath

If you wish to weave into binary files (either that are contained in a jar or in a bin directory), then you need to use the inpath capability.

To setup your AspectJ project to use the inpath:

1. Select the AspectJ project in the Package Explorer
2. Right click and select Properties
3. Select AspectJ Inpath in the list on the left of the properties page
4. Click the Libraries and Folders tab
5. Add the necessary jar file or bin directory using the Add XXX buttons
6. Click OK to close the project properties dialog

When the AspectJ project is built, it will compile the aspects and weave them against the class files specified via inpath and produce a complete set of woven class files in the output directory of the AspectJ project.

The disadvantage of using this approach is that AJDT will not show how the advice in the aspects applies to the input classe. The Cross References view will show that the advice came from an injar aspect, but will not provide any more detail.

Using linked source folders
Working with aspect libraries
Adding an inpath