- Open the Settings dialog (e.g. Ctrl+Alt+S).
- In the left-hand pane, under IDE Settings, click Application Servers.
-
On the Application Servers page that opens in the right-hand part of the dialog,
click
. (Alternatively, press Alt+Insert.) - Select the server that you are going to use from the list.
- In the dialog that opens, specify the server settings and click OK. (For most of the servers, you have to specify just the server installation directory (referred to as the server home). For hosted server systems (Cloud Foundry or CloudBees), you should specify your user account details.) For more information, see Application Servers.
- Click OK in the Settings dialog.
- Start creating a project or module from scratch (e.g. File | New Project or File | New Module). See also, Creating a Project from Scratch or Creating a Module from Scratch.
- On the first page of the wizard, select Java Module. Specify other settings as necessary and click Next. For more information, see Creating a Java Module.
- On the second page of the wizard (the Technologies page), in the left-hand pane, select Application Server.
- Use the list in the right-hand part of the page to define a "new server" or to select a server whose definition already exists in IntelliJ IDEA. (The options that start with New are for defining "new servers". For example, if Tomcat is not yet defined in IntelliJ IDEA and you want to add its definition now, select New Tomcat Server and specify its installation directory in the field that appears underneath the list.)
- If necessary, select the technologies and frameworks that you want to use, specify the associated settings and click Finish to complete the wizard.
- Open the Run/Debug Configurations dialog (e.g. Run | Edit Configurations).
-
Click
(Alt+Insert),
select the server of interest (e.g. Tomcat Server) and,
if available, select Local or Remote. - In the right-hand part of the dialog, on the Server tab, click Configure to the right of the Application server list.
- In the dialog that opens specify the server settings and click OK.
- Specify other run/debug configuration settings as necessary and click OK.
