This is an adapted version of LoD Checker that can work with AspectJ 1.1 and 1.2. It is by Joseph Krauze and Chetan Loke of CSG 110 Spring'05. If you are running it from CCS's solaris machines, follow the steps below: 1. Set up your PATH and CLASSPATH like the following: PATH=.:/usr/j2se/bin:/proj/demsys/demjava/packages/ajc1.2/bin:/proj/demsys/demeterj/bin CLASSPATH=.:/proj/demsys/demjava/packages/logging-log4j-1.2.9/dist/lib/log4j-1.2.9.jar:/proj/demsys/demjava/packages/ajc1.2/lib/aspectjrt.jar:/proj/demsys/demeterj/rt.jar 2. Copy all the files in /proj/demsys/demeterj/csg110/LoD/lawOfDemeter_AspectJ_1_1_1/lawOfDemeter/*.java http://www.ccs.neu.edu/research/demeter/demeter-method/LawOfDemeter/AspectJCheckers/AJ1.2-version/*.java to yourworkingdir/lawOfDemeter/ And copy file /proj/demsys/demeterj/csg110/LoD/lawOfDemeter_AspectJ_1_1_1/LoDLogger.lcf http://www.ccs.neu.edu/research/demeter/demeter-method/LawOfDemeter/AspectJCheckers/AJ1.2-version/LoDLogger.lcf to yourworkingdir 3. Under your working dir, run the AspectJ compiler to compile the .java files, which you want to check, with the LoD checker files: ajc *.java lawOfDemeter/*.java 4. Run your java program to be checked from the working directory as usual. For example, [yourworkingdir] java Main then as your program runs, the checker will check the LoD violations in your program. The results will be reported in a file called LoDChecker.log in your working directory. If you are running this checker from your own computers, follow the steps below: 1. Install the AspectJ compiler 1.2 from http://www.eclipse.org/aspectj/ Then follow the installation instructions. 2. Install log4j from http://logging.apache.org/log4j/docs/ Then follow the installation instructions. 3. Then follow the steps for the CCS solaris machines, starting from step 2.