I have installed the java version 11 and installed jenkins on my amazon ec2 linux kernal 5.10 but while starting the jenkins i am geeting below error Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service” and “journalctl -xe” for details.
Java 11 is no longer supported by the Jenkins project. Since Jenkins 2.463 weekly and Jenkins 2.479.1 LTS, Jenkins requires Java 17 or Java 21. You’ll need to use Java 17 or Java 21.
Linux Kernel 5.10 is used on Amazon Linux 2. Amazon Linux 2 is no longer supported by the Jenkins project. More information is available from the May 2023 blog post. You’ll need to use a supported Linux operating system like Amazon Linux 2023, Red Hat Enterprise Linux 8, .Red Hat Enterprise Linux 9, Debian 11, Debian 12, Ubuntu 22.04, Ubuntu 24.04, and many others.
Once you’ve switched to a supported Java installation and switched to a supported operating system with a supported operating system, you may need that command to diagnose further issues.