I was facing the same issue and for me downgrading the JAVA_HOME
from jdk12 was not the plausible option like said in the answer. So I did a trial and error experiment and I got the Jenkins running without even downgrading the version of JAVA_HOME
.
$ sudo vi /etc/init.d/jenkins
#JAVA=`type -p java`
JAVA=`type -p /usr/lib/jdk8/bin/java`
$ sudo systemctl daemon-reload
$ sudo systemctl start jenkins
? jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated)
Active: active (exited) since Sun 2020-05-31 21:05:30 CEST; 9min ago
Docs: man:systemd-sysv-generator(8)
Process: 9055 ExecStart=/etc/init.d/jenkins start (code=exited, status=0/SUCCESS)