Java 17 is now available in preview.

Setting Up Your Development Environment

To set up your environment for developing on Java 11/17:

  1. Install the latest release of Java 11/17.

    See Java 11/17 Runtime Environment for a list of the supported versions.

  2. Install and initialize the gcloud CLI for deploying and managing your apps. If you already have the gcloud CLI installed and initialized, run the gcloud components update command to update to the latest release.

    By downloading, you agree to be bound by the Terms that govern use of the gcloud CLI for App Engine.

  3. Install the gcloud component that includes the App Engine extension for Java 11/17.

    If you used the apt or yum package managers to install the gcloud CLI, use those same package managers to install the gcloud component.

    Otherwise, use the following command:

     gcloud components install app-engine-java
    

Installing optional tools

Give permission to Cloud Build

When you deploy your app, App Engine uses Cloud Build to build the app into a container and deploy the container to the runtime. Cloud Build does not have permission to deploy Java 11/17 apps by default, so you need to give Cloud Build permission to deploy apps in your project. The builds are created in the app's region.