% $Id: installing-aspectj.txt,v 1.7 2011/02/16 16:07:27 cheon Exp $ How to Install AspectJ ======================= 1. Download a stable version of AspectJ distribution from http://www.eclipse.org/aspectj, e.g., aspectj-1.6.10.jar for Java 1.6 and aspectj-1.5.4.jar for Java 1.5. If you use Eclipse, you may want to install AJDT, an Eclipse plugin containing the AspectJ compiler, instead. For this, refer to www.eclipse.org/ajdt. 2. To install the jar file, say, aspectj-1.6.10.jar, do the following on the command prompt: java -jar aspectj-1.6.10.jar You will see an installation window; simply follow the instructions. It will ask you where you want to install AspectJ and where your current JDK installation is located. 3. Finalize the installation by: (1) adding INSTALL_DIR/lib/aspectjrt.jar to your CLASSPATH and (2) modifying your PATH to include INSTALL_DIR/bin, where INSTALL_DIR is the directory where you installed AspectJ. The AspectJ compiler, ajc, and other tools such as ajdoc and ajbrowser are found in the directory INSTALL_DIR/bin. On Windows, right-click on "My Computer", click "Properties", and select the "Advanced" tab. Then, click the "Environment Variables" button. From there you can edit or create environment variables such as CLASSPATH and PATH. On Unix systems, you may need to modify the login or shell startup files appropriate for your shell, e.g., .bashrc and .cshrc.