IntelliJ IDEA 2017.2 Help

Creating a Java Module


Java modules let you develop Java SE and Java EE applications. The core functionality provided by a Java module can be extended by adding support for various technologies and frameworks (see Adding Support for Frameworks and Technologies).

You can create a Java module when creating a project. You can also add a Java module to an existing project.

General instructions

  1. Do one of the following:
    • If you are going to create a new project: click Create New Project on the Welcome screen or select File | New | Project.

      As a result, the New Project wizard opens.

    • If you are going to add a module to an existing project: open the project you want to add a module to, and select File | New | Module.

      As a result, the New Module wizard opens.

  2. On the first page of the wizard, in the left-hand pane, select Java.
  3. In the right-hand part of the page, specify the SDK (JDK) to be used in your project. Select the JDK from the list, or click New, select JDK and select the installation folder of the desired JDK.

    If necessary, select additional technologies to be supported and specify the associated settings. For more information, see Additional Libraries and Frameworks.

    Click Next.

  4. Sometimes, you have an option of creating a template-based sample project. In such cases, the page is shown with the Create project from template check box.

    If you select this check box, a sample Java class will be created in your project along with a run configuration for that class.

  5. Specify the name and location settings. For more information, see Project Name and Location or Module Name and Location.

    Click Finish.


You can find an example of creating a Java module in Creating, Running and Packaging Your First Java Application.

Last modified: 29 November 2017

See Also