If no project is currently open in IntelliJ IDEA,
click Create New Project on the Welcome screen.
Otherwise, select New Project from the File menu.
As a result, the New Project wizard opens.
- On the first page of the wizard, in the left-hand pane, select Java Module.
- In the right-hand part of the page, specify the project name and location.
Select the desired Java SDK from the Project SDK list.
If the list is empty or doesn't contain the SDK that you need, click New and select JDK. Then, select the installation folder of the required JDK in the dialog that opens.
- Specify other settings as necessary and click Next.
- On the Technologies page of the wizard, select the Web Application check box, and then select the version of the Servlet specification to be supported from the Version list.
Select the Google App Engine check box.
Under Google App Engine SDK select the SDK to be used.
If the list is empty or doesn't contain the SDK that you want, click and
select the installation folder of the required Google App Engine SDK in the dialog that opens.
- 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.
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 "-".