Selector pane
Use the selector pane (located in the left-hand part of the page) to select the necessary option (e.g. the module type to be created).
To check if the selected option is the one you want, read its description (shown in the right-hand part of the page under Description).
Java: Java Module
Select this option if you are going
to use your new module
to develop a Java
application.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and select the SDK type. (It's likely that it's the JDK option that you want at the moment.) Then, in the dialog that opens, select the installation folder of the desired SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
| More Settings |
Click the arrow ( or ) to
show or hide additional settings
(discussed below). |
| Create source root |
Select the check box to create a directory for your source code.
By default, the src directory is created in the module content root folder (recommended). If you want this directory to have a different name, edit the text in the field.
To specify a different directory, click |
Java: IntelliJ Platform Plugin
Select this option if you are going to use your new module to develop a plugin for IntelliJ IDEA or other IntelliJ Platform-based IDE.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and, in the dialog that opens, select the installation folder of the desired IntelliJ IDEA version. (An IntelliJ IDEA installation acts as an IntelliJ IDEA Plugin SDK.) (By this time, the corresponding IntelliJ IDEA version must already be installed on your computer. If it isn't, download and install it first.) |
| More Settings |
Click the arrow ( or ) to
show or hide additional settings
(discussed below). |
| Create source root |
Select the check box to create a directory for your source code.
By default, the src directory is created in the module content root folder (recommended). If you want this directory to have a different name, edit the text in the field.
To specify a different directory, click |
Java: J2ME Module
Select this option if you are going
to use your new module
to develop for Java ME
.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and, in the dialog that opens, select the installation folder of the desired Java ME SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
| More Settings |
Click the arrow ( or ) to
show or hide additional settings
(discussed below). |
| Create source root |
Select the check box to create a directory for your source code.
By default, the src directory is created in the module content root folder (recommended). If you want this directory to have a different name, edit the text in the field.
To specify a different directory, click |
Java: Maven Module
Select this option if you are going
to use your new module
to develop a Java
application with
dependencies managed by Maven
.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and, in the dialog that opens, select the installation folder of the desired Java SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
Java: Command Line App
Select this option if you are going
to use your new module
to develop a Java
application.
IntelliJ IDEA will create
a Java module.
The module will contain a class
with a main() method.
You'll be able to run this class
right away.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and select the SDK type. (It's likely that it's the JDK option that you want at the moment.) Then, in the dialog that opens, select the installation folder of the desired SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
Groovy: Groovy Module
Select this option if you are going
to develop a Groovy
application.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and select the SDK type. (It's likely that it's the JDK option that you want at the moment.) Then, in the dialog that opens, select the installation folder of the desired SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
| More Settings |
Click the arrow ( or ) to
show or hide additional settings
(discussed below). |
| Create source root |
Select the check box to create a directory for your source code.
By default, the src directory is created in the module content root folder (recommended). If you want this directory to have a different name, edit the text in the field.
To specify a different directory, click |
Groovy: Grails Module
Select this option if you are going
to use your new module
to develop a Grails
application.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and select the SDK type. (It's likely that it's the JDK option that you want at the moment.) Then, in the dialog that opens, select the installation folder of the desired SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
Groovy: Griffon Module
Select this option if you are going
to use your new module
to develop a Griffon
application.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and select the SDK type. (It's likely that it's the JDK option that you want at the moment.) Then, in the dialog that opens, select the installation folder of the desired SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
Java Enterprise: JavaEE Web Module
Select this option if you are going
to use your new module
to develop a Java
Web application.
In addition to what you normally get for a Java module, IntelliJ IDEA will create:
-
web\WEB-INF\web.xml
(the deployment descriptor
file). - web\index.jsp (a file which, with minor modifications, you can use as a starting page of your Web application).
- An artifact specification for your Web application.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and select the SDK type. (It's likely that it's the JDK option that you want at the moment.) Then, in the dialog that opens, select the installation folder of the desired SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
Android: Application Module
Select this option if you are going
to use your new module
to develop an application for the Android
OS.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and, in the dialog that opens, select the installation folder of the desired Android SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
Android: Empty Module
Select this option if you are going
to use your new module
to develop for
Android
but haven't decided yet whether
this module will implement
an application or a shared Android
library.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and, in the dialog that opens, select the installation folder of the desired Android SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
| More Settings |
Click the arrow ( or ) to
show or hide additional settings
(discussed below). |
| Create source root |
Select the check box to create a directory for your source code.
By default, the src directory is created in the module content root folder (recommended). If you want this directory to have a different name, edit the text in the field.
To specify a different directory, click |
Android: Library Module
Select this option if you are going to create an
Android
library module,
one that contains shared source code and resources that can be referenced in other Android modules
(e.g. used in a number of your Android applications).
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and, in the dialog that opens, select the installation folder of the desired Android SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
| Package name |
Specify the package name for your module.
Note that it's a Java package name that is specified here.
For more information, see, for example,
Android package name and
Naming a package . |
Android: Test Module
Select this option if you are going
to use your new module
to develop tests for your Android application (represented by an Android application module).
See the documentation for the
Android testing framework
used.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and, in the dialog that opens, select the installation folder of the desired Android SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
| Tested module | Select the module to be tested. This may be any Android Application module in the same project. |
Other: Flash Module
Select this option if you are going to develop for the
Adobe Flash runtimes
using
Flex
or
ActionScript
.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
Other: Web Module
Select this option if you are going to develop a Web application using
HTML
/CSS
,
JavaScript
, PHP
and related frameworks.
Note that a Web module cannot be used for developing in Java.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
Samples Gallery: Java Hello World
If you select this option, IntelliJ IDEA will create
a Java module.
The module will contain a class
implementing a Hello World application.
You'll be able to run this application
right away.
| Item | Description |
|---|---|
| Module name | Specify the module name. |
| Content root |
Specify the path to the module content root folder.
(This is where all the files that make up you module will be stored;
for more information, see Content Root.)
By default, a folder having the same name as the module is created in the project directory (recommended).
To use a different folder, click |
| Module file location |
Specify the path to the folder where the .iml module file should be created.
By default, this file is created in the module content root folder (recommended).
To use a different folder, click |
| Module SDK |
If IntelliJ IDEA can guess which SDK you are likely to use in your module,
the controls for specifying the module SDK are not provided.
This may be the case when an SDK of the appropriate type is defined as the project SDK,
or there is already a module in you project where an appropriate SDK is used, etc.
Otherwise, you can specify the SDK to be used in your module. If the necessary SDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and select the SDK type. (It's likely that it's the JDK option that you want at the moment.) Then, in the dialog that opens, select the installation folder of the desired SDK. (By this time, the corresponding SDK must already be installed on your computer. If it isn't, download and install it first.) |
(
or
) to
show or hide additional settings
(discussed below).