AspectJ Setup and Usage at CCS

Setup

In order to be able to use the AspectJ compiler and tools from your CCS account you need to first complete the following steps:
  1. Add /proj/demsys/demeterj/bin/ to your PATH environment variable
  2. Add /proj/demsys/demeterj/lib/aspectjrt.jar to your CLASSPATH environment variable.

Testing your Setup

To test your setup for AspectJ type the following at your shell prompt:

ajc -version

You should get a response (currently) of the form:

ajc version 1.0.1 (built Dec 18, 2001 11:11 AM PST) running on java 1.3.0

To compile a bunch of Java files use ajc *.java

To find out about how AspectJ compiles the code, use ajc -preprocess *.java and inspect the ajworkingdir directory.

For information on compiler options as well as AspectJ in general visit The AspectJ Web Page