# Upgrading Jenkins from Java 11 to Java 21

**URL:** <https://community.jenkins.io/t/upgrading-jenkins-from-java-11-to-java-21/15859>\
**Category:** Ask a question\
**Tags:** java\
**Created:** [June 11, 2024, 12:06am UTC](https://community.jenkins.io/t/upgrading-jenkins-from-java-11-to-java-21/15859 "2024-06-11T00:06:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vpola](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@vpola](https://community.jenkins.io/u/vpola)\
**Post date:** [June 11, 2024, 12:06am UTC](https://community.jenkins.io/t/upgrading-jenkins-from-java-11-to-java-21/15859/1 "2024-06-11T00:06:27Z")

</div>

Hello Jenkins Community,

I am currently running Jenkins LTS 2.426.3 on an Ubuntu 22.04 server, which is using Java 11. I am considering upgrading the Java version to Java 21.

Could you please advise if it is possible to upgrade directly from Java 11 to Java 21? Are there any specific steps or considerations I should be aware of during this upgrade process?

Thank you for your assistance.

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [June 11, 2024, 9:09am UTC](https://community.jenkins.io/t/upgrading-jenkins-from-java-11-to-java-21/15859/2 "2024-06-11T09:09:54Z")

</div>

You should be able to directly upgrade.  
The agents that connect to your Jenkins should also be upgraded so that they use the same java version.
