Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

java 21 app engine standard support?

Any plan to support java 21 in app engine standard?

0 1 1,514
1 REPLY 1

Hi @sixcorners,

Welcome to Google Cloud Community!

Yes, Google App Engine Standard supports Java 21 as of December 6, 2023. However, it is currently in preview. You can update your configuration files to enable it.

To use Java 21 with App Engine standard, you have two options:

  • Upgrade to Java Enterprise Edition 10 (EE10): This is the recommended option and the default behavior. Java EE10 does not support javax.servlet.* APIs, so you need to update your code to use newer Java artifacts like the Jakarta namespace.
  • Use Java Enterprise Edition 8 (EE8): This option allows you to use javax.servlet.* APIs, but you need to make minor configuration changes to your appengine-web.xml file.

If you don't use legacy bundled services, you can simply update the version in your app.yaml file to "21".

Here are some resources that you may find helpful: