Under Platform Settings, select Global Libraries. Define a global libraryįrom the main menu, select File | Project Structure Ctrl+Alt+Shift+S. Select these files in the Project tool window, and then select Add as Library from the context menu. You can also create a new library from the JAR files located within a project content root. IntelliJ IDEA will also use the code from the libraries to build and deploy your application. Define a libraryĪfter you define a library and add it to module dependencies, the IDE will be supplying its contents to you as you write your code. If you're using a build tool, such as Maven or Gradle, make all changes using the build file. This information is valid for projects that are built with the native IntelliJ IDEA builder. In IntelliJ IDEA, libraries can be defined at three levels: global (available for many projects), project (available for all modules within a project), and module (available for one module).Ī Java library can include class files, archives and directories with class files as well as directories with native libraries. A library is a collection of compiled code that you can add to your project.