By Phil Zoio, January 10, 2005
1. Download
The first tasks is to download the AspectWerkz source, then extract the archive and place the extracted folder in your Eclipse workspace. The extracted folder (the folder at the root of the download archive) is aw_2_0_2. I renamed this file aspectwerkz_2_0_2 after placing it in the Eclipse workspace root folder.
Building from source is very useful because you can inspect the libraries source and step through code using the debugger, which we'll see in action later.
2. Building the AspectWerkz Source
The next step is to create a new Java project. By naming it aspectwerkz_2_0_2, you can advantage of Eclipse's rather handy ability to automatically discover Java source folders and add them to your project. In a similar way, it automatically finds all the jar archives and adds these to the project class path.
Because the AspectWerkz source build contains code supporting a number of different environments (including both JDK 1.4 and 1.5), the Eclipse project initially does not build without errors. I needed to remove the following folders from the source path:
Otherwise, the only additional library needed to build the source was the Sun JPDA (Java Platform Debugger Architecture) library (jpda.jar), which can be downloaded from http://java.sun.com/products/jpda/download.html.
Once jpda.jar was added to the Eclipse project, the aspectwerkz_2_0_2 project built successfully. However, even if it did not, this would not have been a showstopper, since the AspectWerkz 2.0 download contains all the necessary binaries needed to run the samples.
>