IntelliJ IDEA 13.1 Web Help

Prior to using annotations, they should be enabled in project.

To enable annotations in a project, follow these general steps
  1. Click projectStructure to open the project structure dialog.
  2. In the Project Structure dialog box, click Libraries.
  3. Click add. Select Library Files dialog box opens.
  4. Under that <IntelliJ IDEA home> directory, select lib/annotation.jar, and click OK:

    add_annotations

  5. If your project contains more than one module, choose the desired module to be modified, and click OK:

    choose_module

The new library is added to the classpath:

add_annotations1

See Also

Procedures:

Web Resources: