To be able to use the AspectJ support, in addition to enabling AspectJ support plugins, you should create a library containing aspectjrt.jar and add this library to dependencies of the modules in which you are going to develop your aspects.
aspectjrt.jar is included in AspectJ Development Kit (AJDK) which you can download from the AspectJ website.
By the time you start to perform this task, the AJDK must have already been downloaded and installed.
- Open the Project Structure dialog.
- Depending on whether you want to create the new library at the project or the IDE level, select Libraries or Global Libraries.
- Click (Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter) and select Java.
- In the dialog that opens, find and select aspectjrt.jar. (This file is located in <AJDK installation directory>\lib.)
- In the Choose Modules dialog, select the modules you want to add this library to as a dependency and click OK.
- Click OK in the Project Structure dialog.