Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

App Engine Java 8 Runtime FAQ

The following questions apply to the App Engine Java 8 standard runtime.

Can I use Kotlin with the Java 8 runtime?

Yes, check out our Kotlin samples in the GitHub repository.

Can I use IntelliJ IDEA Community Edition with App Engine?

Yes, using the built-in Maven integration.

You can also use IntelliJ Ultimate Edition, which provides you with more web application development features and has tighter integration with the App Engine deployment process.

Does App Engine Cloud Endpoints v1.0 work in the Java 8 runtime?

No. You must migrate to Cloud Endpoints Frameworks version 2.0.

Why do I get java.lang.NoClassDefFoundError for repackaged classes?

Repackaged internal classes, such as com/google/appengine/repackaged/com/google/common/collect/ImmutableList, are not available anymore in the Java 8 runtime, even if they are defined in previous versions of the App Engine API JAR.

If you need to use the repackaged classes in your Java 8 app, set appengine.api.legacy.repackaging to true in the appengine-web.xml. For example:

  <property name="appengine.api.legacy.repackaging" value="true">

We recommend that you replace these classes with the public, non-repackaged classes.

Can I do traffic splitting between Java 8 and Java 11?

Yes, each service or module version can use a different runtime version, and traffic splitting is supported.

How are Java 8 threads treated when an instance isn't getting requests?

Threads created with App Engine APIs will continue to work as before.

Automatic Scaling Manual Scaling Basic Scaling
Instance terminates due to lack of requests. Instance terminates after the last request (default: 5 minutes) Runs forever.

What Metadata server features are supported in the App Engine Java 8 runtime?

The App Engine Java 8 runtime supports the following Metadata server urls:

/computeMetadata/v1/project/numeric-project-id (pending)

Metadata Server v1beta1

The v1beta1 Metadata server is deprecated and scheduled for shutdown. Ensure that you update all requests to use v1 or newer. For more information, see Transitioning to the v1 metadata server endpoint.

/computeMetadata/v1beta1/project/numeric-project-id  (pending)

Why do my requests fail to respond?

If you create a thread pool on a request, you must make sure that you explicitly shut it down before the current request terminates.