03-60-440 Principles of Programming Languages (2011 Fall)School of Computer Science, University of Windsor
|
AspectJ Installation InstructionYou can run AspectJ programs either in command line or in IDEs such as Eclipse. Installing command line AspectJDownloadAspectJ can be downloaded from eclipse at here. The current version of aspectJ is aspectj-1.6.12.jar. Suppose that is the version you have downloaded and will uase in this project. Start the installation by typing the command as below: java -jar aspectj-1.6.12.jar
It will start installation dialogues, prompting the version of JDK you want to use and installation directories. SetupPrograms written is the AspectJ language are compiled using ajc. In order to use the compiler you have to add <aspectj install dir>/lib/aspectjrt.jar to your CLASSPATH environment variable and <aspectj install dir>/bin to your PATH. To change those environment variables, use Control Panel/System/Advanced/Environment Variables/System Variables. Compile and run the program>ajc Hello.java, With.aj >java Hello Installing AspectJ in EclipseTo add AspectJ in Eclipse, select Help/Software updates/Find and install/ Then select "Search for new features to install", then "new
remote site". In the URL box type" Upon successful installation, you can create a aspectJ project, and you can add aspects.
|