IntelliJ IDEA 14.0.0 Web Help

Creating a Library for aspectjrt.jar

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 the AspectJ distribution which you can download from the AspectJ website.

To create a library for aspectjrt.jar and add it to module dependencies

  1. Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
  2. Depending on whether you want to create the new library at the project or the IDE level, select Libraries or Global Libraries.
  3. Click add and select Java.
  4. In the dialog that opens, find and select aspectjrt.jar. (This file is located in <AspectJ installation directory>\lib.)
  5. In the Choose Modules dialog, select the modules in which you want to use this library and click OK.

    As a result, the library is added to dependencies of the corresponding modules.

  6. Click OK in the Project Structure dialog.

See Also

Last modified: 4 December 2014
comments powered by Disqus