Update the Debian apt repositories, install OpenJDK 17, and check the installation with the commands:I would assume it should now suggest using JDK21, right?
...
Java support and upgrade
information
In addition to support policies, this chapter provides
information on upgrading your Java version in Jenkins.
Depending on your current Java version, there are
instructions for upgrading to Java 11 and upgrading to Java
17.
Java support policy
does mention JDK21, but doesn't mention a version that would
break support with JDK17
https://www.jenkins.io/doc/book/platform-information/support-policy-java/index.html
Perhaps the message was
sen too early in Jenkins 2.492.3?
Regards,
Maciej Nux.
I received a message about "Java 17 end of life in Jenkins." I assume this means I should install JDK21 ASAP, right?
--
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-users/56e5a42cde03284629c60c81eafaf2725c38e2c7.camel%40opentext.com.
yes this is odd
Am Mittwoch, dem 09.04.2025 um 20:07 +0200 schrieb 'Maciej Jaros' via Jenkins Users:
I received a message about "Java 17 end of life in Jenkins." I assume this means I should install JDK21 ASAP, right?
Why? It clearly says: May 2026.
Yes, you are right. It makes sense to switch to Java 21 in the next couple of months (actually I never understood why one should not directly move from Java 11 to Java 21 for the controllers, as we also fully support Java 21 from the beginning of the Java 17 switch). The plan is to switch the weekly Jenkins releases to Java 21 in the middle of this year.
If you find such wrong references of the Java version in out documentation it would be helpful if you can either create an issue in Jira or even better: click the „Improve the page“ button and fix the corresponding page by yourself. This helps us a lot as the documentation is spread along a lot of different files...
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-users/c61cacaa-2b22-453f-a6c7-a43b78803cffn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-users/CACtV%3DdfApyZzme8-tchj7Bc3mQUG8icWniF3j%3DKdifhrqR8WJw%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-users/2408f893-4871-46ae-bd6a-3b974411df99n%40googlegroups.com.
This was a tough nut to crack. I updated the LTS jenkins version I had running to 2.516.1 LTS and started jenkins. It started but was using JDK-17. As I had JDK-21 still installed, I stopped jenkins service, used update-alternatives --config java to set it to jdk-21. When I started the new jenkins LTS version with jdk-21, it worked. So, there must have been some incompatibility in 2.504.1 and jdk-21.