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. In IntelliJ IDEA these additional frameworks and technologies are represented by facets.
You can create a Java module when creating a project. You can also add a Java module to an existing project.
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.
- If you are going to create a new project: click Create New Project on the Welcome screen or select File | New Project.
- On the first page of the wizard, in the left-hand pane, select Java.
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 Technologies.
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.
Specify the name and location settings. For more information,
see Project Name and Location or Module Name and Location.