Setting Up Your Development Environment

To set up your environment for developing on Java 8:

  1. Install the latest release of Java 8.

    See Java 8 Runtime Environment for a list of the supported versions.

  2. Install and initialize the Cloud SDK. If you already have the Cloud SDK installed and initialized, run the gcloud components update command to update to the latest release.

    The Cloud SDK provides you the gcloud command-line tooling for deploying and managing your apps.

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

    Install and initialize the Cloud SDK

  3. Install the gcloud component that includes the App Engine extension for Java 8.

    If you used the apt or yum package managers to install the Cloud SDK, 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 8 apps by default, so you need to give Cloud Build permission to deploy apps in your project.

Installing support for appcfg

If you have previously used the original App Engine SDK and need to continue to use the deprecated appcfg command, you can download and install the original App Engine SDK by following the instructions below. Cloud SDK does not include the appcfg command.