IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.

To define a server in IntelliJ IDEA, in most of the cases, all you have to do is to specify where the corresponding server is installed. For hosted server systems (Cloud Foundry or CloudBees), you should specify your user account details instead.

You can define a server separately in the Settings dialog. You can also define a server when creating a project or adding a module to an existing project. Finally, you can define a server at a later time, when creating an application server run/debug configuration.

Note that if you specify the server that you are going to use when creating a project or module, IntelliJ IDEA will create a run/debug configuration for the corresponding server. (Otherwise, you'll have to do it yourself.) So it's recommended that you define the necessary server before or when creating a project or module.

To define a server in the Settings dialog
  1. Open the Settings dialog (e.g. Ctrl+Alt+SCtrl+Alt+SCtrl+Alt+SCtrl+Alt+SCtrl+Alt+SCtrl+Alt+SAlt+F7Ctrl+Alt+SCtrl+Alt+SCommand CommaCommand CommaCommand Comma).
  2. In the left-hand pane, under IDE Settings, click Application Servers.
  3. On the Application Servers page that opens in the right-hand part of the dialog, click add. (Alternatively, press Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter.)
  4. Select the server that you are going to use from the list.
  5. 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.
  6. Click OK in the Settings dialog.
To define a server when creating a project or module
  1. 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.
  2. 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.
  3. On the second page of the wizard (the Technologies page), in the left-hand pane, select Application Server.
  4. 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.)
  5. If necessary, select the technologies and frameworks that you want to use, specify the associated settings and click Finish to complete the wizard.
To define a server when creating a run/debug configuration
  1. Open the Run/Debug Configurations dialog (e.g. Run | Edit Configurations).
  2. Click add (Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter), select the server of interest (e.g. Tomcat Server) and, if available, select Local or Remote.
  3. In the right-hand part of the dialog, on the Server tab, click Configure to the right of the Application server list.
  4. In the dialog that opens specify the server settings and click OK.
  5. Specify other run/debug configuration settings as necessary and click OK.

See Also

Procedures:

Reference:

Web Resources: