# Java 11 as default in Jenkins 2.303.1 Docker images

**URL:** <https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283>\
**Category:** Code\
**Tags:** java\
**Created:** [August 4, 2021, 3:18am UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283 "2021-08-04T03:18:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 4, 2021, 3:18am UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/1 "2021-08-04T03:18:03Z")

</div>

I’ve posted a Jenkins Enhancement Proposal pull request with a plan to update the Jenkins Docker images from Java 8 to Java 11 as part of the August 25, 2021 LTS release of Jenkins 2.303.1.

We’re already working on the changes and the communication. We’d love to have additional insights from others about problems that may have been missed or issues that could cause us to reconsider making that change.

See the [pull request](https://github.com/jenkinsci/jep/pull/374/files) and view the README file for details.

The [pull request](https://github.com/jenkinsci/docker/pull/1178) for the controller change in weekly Jenkins 2.307 has been submitted and is ready for review.

---

<div class="post-metadata">

**Author:** ![saper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/saper/32/138_2.png) [@saper](https://community.jenkins.io/u/saper)\
**Post date:** [August 4, 2021, 5:23pm UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/2 "2021-08-04T17:23:59Z")

</div>

Adoptium is still working on the [11.0.12 JDK release](https://github.com/adoptium/adoptium/issues/62) with some security issues, among others. Shall we wait till they are ready so that we can ship it there? (Existing JDK 8 images need to be updated, too, so this is kind of orthogonal).

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 4, 2021, 6:52pm UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/3 "2021-08-04T18:52:07Z")

</div>

Thanks for asking. I think that we can safely proceed with any of the 11.0.12 releases that Adoptium has published. The Docker images for amd64 are available and the change to use them has been merged into the controller repository. The agent images still need to be updated as do the Windows images for the controller.

---

<div class="post-metadata">

**Author:** ![timja](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/timja/32/7_2.png) [@timja](https://community.jenkins.io/u/timja)\
**Post date:** [August 6, 2021, 6:48pm UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/4 "2021-08-06T18:48:00Z")

</div>

Hmm this will cause publishing to fail as the arm images aren’t there, we can see on Tuesday but might need to roll back

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 6, 2021, 8:02pm UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/5 "2021-08-06T20:02:20Z")

</div>

I think you’re probably correct that publishing will fail because we need AdoptOpenJDK images for each of the supported architectures. I’ve submitted the pull request to revert the change.

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 14, 2021, 2:40am UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/6 "2021-08-14T02:40:04Z")

</div>

Adoptium has released Java 8u302 and Java 11.0.12 for the architectures we need. I’ve included the Java upgrade in the [pull request](https://github.com/jenkinsci/docker/pull/1178) that switches to Java 11.

---

<div class="post-metadata">

**Author:** ![saper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/saper/32/138_2.png) [@saper](https://community.jenkins.io/u/saper)\
**Post date:** [August 21, 2021, 10:18am UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/7 "2021-08-21T10:18:11Z")

</div>

Enterprise Linux RPMs are still missing for some reason…

---

<div class="post-metadata">

**Author:** ![timja](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/timja/32/7_2.png) [@timja](https://community.jenkins.io/u/timja)\
**Post date:** [August 21, 2021, 12:07pm UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/8 "2021-08-21T12:07:42Z")

</div>

We’ve stopped using the RPMs now in [Switch to eclipse temurin, build via jlink, switch to bullseye by timja · Pull Request #1185 · jenkinsci/docker · G](https://github.com/jenkinsci/docker/pull/1185) so it’ll have the latest in the next release

---

<div class="post-metadata">

**Author:** ![saper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/saper/32/138_2.png) [@saper](https://community.jenkins.io/u/saper)\
**Post date:** [August 22, 2021, 1:00pm UTC](https://community.jenkins.io/t/java-11-as-default-in-jenkins-2-303-1-docker-images/283/9 "2021-08-22T13:00:03Z")

</div>

Wow, amazing work, thank you!
