IntelliJ IDEA 14.0.0 Web Help

Defining Application Servers in IntelliJ IDEA

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 module. 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+S).
  2. In the left-hand pane, in the Build, Execution, Deployment category, select Application Servers.
  3. On the Application Servers page that opens in the right-hand part of the dialog, click add. (Alternatively, press Alt+Insert.)
  4. Select the server that you are going to use.
  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. 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 Enterprise.
  3. In the right-hand part of the page, to the right of the Application Server field, click New.
  4. Select the server that you are going to use.
  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.)
  6. Specify other settings as necessary and click Next. For more information, Project Category and Options or Module Category and Options.
  7. Specify the name and location settings and click Finish. For more information, see Project Name and Location or Module Name and Location.

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+Insert), 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

Last modified: 12 November 2014
comments powered by Disqus