GoogleCloudPlatform / openjdk-runtime

Google Cloud Platform OpenJDK Docker image
Apache License 2.0
62 stars 41 forks source link

openjdk11 not working #200

Closed bjornharvold closed 1 year ago

bjornharvold commented 5 years ago

Hi,

I saw that the openjdk-runtime supports either openjdk8 or openjdk11. I tried setting openjdk11 in my app.yaml. When I deployed I received this error:

The provided runtime_config.jdk option 'openjdk11' is invalid for JAR deployments. Please use a supported jdk option; ['openjdk8', 'openjdk9'].

Does this mean I can only use Java 11 when deploying a WAR container?

Thank you Bjorn

pk-op-06 commented 1 year ago

Still the same after 3 years 👎🏻

bjornharvold commented 1 year ago

For anyone coming across this... switch to Cloud Run today!

jinglundong commented 1 year ago

Hi folks, I want to share an update about the OpenJDK 11 and 17 support. We are going to make them public preview in the coming weeks, if not days.

Please update your app.yaml as follow and use gcloud version >= 420.0.0 to gcloud app deploy your GAE Flex application. Any feedback would be appreciated.

runtime: java
env: flex

runtime_config:
    operating_system: "ubuntu22"
    runtime_version: "17"
runtime: java
env: flex

runtime_config:
    operating_system: "ubuntu18"
    runtime_version: "11"

+cc, @kappratiksha @jama22

BullyWiiPlaza commented 1 year ago

Still, the latest supported version is openjdk9 😒

app.yaml:

runtime: java
env: flex
runtime_config:
  jdk: openjdk9
...

I wanted to use openjdk19.

jinglundong commented 1 year ago

GAE Flex supports Java 8, 11 and 17 now. Release notes. We will make announcements as release notes when it supports Java 19 in the future.

runtime: java
env: flex

runtime_config:
    operating_system: "ubuntu22"
    runtime_version: "17"