Download the App Engine SDK for Java

The App Engine SDK for Java includes a local development server as well as the tooling for deploying and managing your applications in App Engine.

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

To download and install the SDK:

Linux
  1. Download the App Engine SDK for Java:

    file_download Download

    Version:

    1.9.59 - 2017-10-31

    Size:

    195.2 MB

    SHA1 Checksum:
    d6b37e2fb7062454e3e7bac04888f13860035bb6
  2. Install on Linux:

    1. Unzip the appengine-java-sdk-1.9.59.zip file that you downloaded to a directory of your choice. For example:
      unzip appengine-java-sdk-1.9.59.zip

      There is no App Engine installation script that you need to run after unzipping the files.

    2. Add the appengine-java-sdk-1.9.59/bin/ directory to your PATH:
      export PATH=$PATH:DIRECTORY_PATH/appengine-java-sdk-1.9.59/bin/
    3. Set the javac compiler flags to generate the byte code level required by the App Engine Java runtime you are using, per the tabs below:
      Java 7 runtime

      The App Engine Java 7 runtime requires Java 1.7 bytecode level. You can use either Java 7 or Java 8 JDKs to generate Java 7 byte code by using this compiler flag:

      -source 1.7 -target 1.7
      Java 8 runtime

      The App Engine Java 8 runtime can use either Java 1.7 or 1.8 bytecode level. You can use either of these compiler flags:

      -source 1.7 -target 1.7

      or

      -source 1.8 -target 1.8

      Note: If you don't have Java or the correct Java version installed, download and install the Java SE Development Kit (JDK) for Linux.

Mac OS X
  1. Download the App Engine SDK for Java:

    file_download Download

    Version:

    1.9.59 - 2017-10-31

    Size:

    195.2 MB

    SHA1 Checksum:
    d6b37e2fb7062454e3e7bac04888f13860035bb6
  2. Install the SDK on Mac OS X:

    1. Double click the appengine-java-sdk-1.9.59.zip file that you downloaded to extract the SDK to a directory of your choice.
    2. Add the appengine-java-sdk-1.9.59/bin/ directory to your PATH:
      export PATH=$PATH:DIRECTORY_PATH/appengine-java-sdk-1.9.59/bin/
    3. Set the javac compiler flags to generate the byte code level required by the App Engine Java runtime you are using, per the tabs below:
      Java 7 runtime

      The App Engine Java 7 runtime requires Java 1.7 bytecode level. You can use either Java 7 or Java 8 JDKs to generate Java 7 byte code by using this compiler flag:

      -source 1.7 -target 1.7
      Java 8 runtime

      The App Engine Java 8 runtime can use either Java 1.7 or 1.8 bytecode level. You can use either of these compiler flags:

      -source 1.7 -target 1.7

      or

      -source 1.8 -target 1.8

      Note: If you don't have Java or the correct Java version installed, download and install the Java SE Development Kit (JDK) for Mac OS X.

Windows
  1. Download the App Engine SDK for Java:

    file_download Download

    Version:

    1.9.59 - 2017-10-31

    Size:

    195.2 MB

    SHA1 Checksum:
    d6b37e2fb7062454e3e7bac04888f13860035bb6
  2. Install the SDK on Windows:

    1. Double click the appengine-java-sdk-1.9.59.zip file that you downloaded to extract the SDK to a directory of your choice. It doesn't matter where you install the SDK but you must add the directory to your %PATH% environment variable. Find Environment Variables in the Advanced System Settings dialog and then add the directory to your %PATH% variable.
    2. Set the javac compiler flags to generate the byte code level required by the App Engine Java runtime you are using, per the tabs below:
      Java 8 runtime

      The App Engine Java 8 runtime can use either Java 1.7 or 1.8 bytecode level. You can use either of these compiler flags:

      -source 1.7 -target 1.7

      or

      -source 1.8 -target 1.8
      Java 7 runtime

      The App Engine Java 7 runtime requires Java 1.7 bytecode level. You can use either Java 7 or Java 8 JDKs to generate Java 7 byte code by using this compiler flag:

      -source 1.7 -target 1.7

      Note: If you don't have Java or the correct Java version installed, download and install the Java SE Development Kit (JDK) for Windows.

      If you are using the App Engine Java 8 runtime, you don't need to use the compiler flag shown above: the Java 8 runtime supports Java 8 bytecode.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

App Engine standard environment for Java