IntelliJ IDEA 14.1.1 Help

Creating Google App Engine Project

To develop a Google App Engine web application, you need a project with a Java or JavaEE module and additional support for Web and Google App Engine application development.

To create a project for google app engine application development

  1. If no project is currently open in IntelliJ IDEA, click Create New Project on the Welcome screen. Otherwise, select File | New | Project.

    As a result, the New Project wizard opens.

  2. On the first page of the wizard, in the left-hand pane, select Java.
  3. 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.

  4. From the Additional Libraries and Frameworks list, select the Google App Engine check box.
    Note that the Web Application option will be selected automatically.
    In the Google App Engine SDK field, select the SDK you want to use. If the list is empty click Download link to download the latest Google App Engine SDK. If the field doesn't contain the SDK that you want, click browseButton and select the installation folder of the required Google App Engine SDK in the dialog that opens.

    From the Persistence list, select (JDO or JPA).

  5. Click Next.
  6. On the next page of the wizard, specify the name and location settings.
    For more information, see Project Name and Location or Module Name and Location.

    Click Finish.

    IntelliJ IDEA creates a directory structure, which you can explore in the Project tool window. Depending on the selected persistence type, IntelliJ IDEA will:

    • Generate persistence.xml for JPA, or jdoconfig.xml for JDO.
    • Take the required libraries from the App Engine SDK.

    Later, you can view the persistence settings, and change them if necessary, on the Google App Engine Facet Page. If no persistence is selected, the enhancement step is omitted in the build file.

  7. Open the file appengine-web.xml located in the WEB-INF directory. In the <application> tag, enter the identifier that you have already defined in the Create application page of the Google App Engine. The application identifier should meet certain requirements: only lower-case letters, digits, and "-" characters are allowed; the application id should not begin with "-".

    You can start developing your Google App Engine application.

See Also

Last modified: 6 April 2015