Java version for Jenkins on ubuntu 18 04

0 votes

I have installed Java 10 and now I'm trying to install Jenkins but I get an error saying 

● jenkins.service - LSB: Start Jenkins at boot time
   Loaded: loaded (/etc/init.d/jenkins; generated)
   Active: failed (Result: exit-code) since Mon 2019-04-15 12:08:29 UTC; 8ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 9450 ExecStart=/etc/init.d/jenkins start (code=exited, status=1/FAILURE)

Apr 15 12:08:28 ip-10-0-2-17 systemd[1]: Starting LSB: Start Jenkins at boot time...
Apr 15 12:08:29 ip-10-0-2-17 jenkins[9450]: Found an incorrect Java version
Apr 15 12:08:29 ip-10-0-2-17 jenkins[9450]: Java version found:
Apr 15 12:08:29 ip-10-0-2-17 jenkins[9450]: openjdk version "10.0.2" 2018-07-17
Apr 15 12:08:29 ip-10-0-2-17 jenkins[9450]: OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
Apr 15 12:08:29 ip-10-0-2-17 jenkins[9450]: OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
Apr 15 12:08:29 ip-10-0-2-17 jenkins[9450]: Aborting
Apr 15 12:08:29 ip-10-0-2-17 systemd[1]: jenkins.service: Control process exited, code=exited status=1
Apr 15 12:08:29 ip-10-0-2-17 systemd[1]: jenkins.service: Failed with result 'exit-code'.
Apr 15 12:08:29 ip-10-0-2-17 systemd[1]: Failed to start LSB: Start Jenkins at boot time.
dpkg: error processing package jenkins (--configure):
 installed jenkins package post-installation script subprocess returned error exit status 1
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu10.12) ...
Errors were encountered while processing:
 jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)

What is the issue?

Apr 16, 2019 in Jenkins by Koyal
2,199 views

1 answer to this question.

0 votes

Hi @Koyal, If you look at the Jenkins Documentation, it mentions that you need java 8. The later versions are not supported by Jenkins

  • Java 8 runtime environments, both 32-bit and 64-bit versions are supported

  • Since Jenkins 2.164 and 2.164.1 [1], Java 11 runtime environments are supported

    • Running Jenkins with Java 11 is documented here

    • There are some precautions to take when upgrading from Java 8 to Java 11 in Jenkins, please follow these guidelines.

  • Older versions of Java are not supported

  • Java 9 and Java 10 are not supported

  • Java 12 is not supported

answered Apr 16, 2019 by Vish

Related Questions In Jenkins

0 votes
1 answer

How do I install Jenkins on ubuntu?

Hey @Chandu, follow these steps to install ...READ MORE

answered Feb 26, 2019 in Jenkins by Kalgi
1,351 views
0 votes
1 answer

how to create a job using jenkins for Sign the puppet certificate on master ?

Take a look at this  https://fullstack-puppet-docs.readthedoc ...READ MORE

answered May 29, 2020 in Jenkins by Sirajul
• 59,230 points
1,136 views
0 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,714 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
0 votes
2 answers

will running multiple Jenkins masters on same host increase the performance?

While using one big master, u can ...READ MORE

answered Aug 7, 2018 in Jenkins by Kalgi
• 52,350 points
3,258 views
0 votes
2 answers

How to start Jenkins on a different port rather than 8080?

This is simple, use the following command: java ...READ MORE

answered Jul 4, 2018 in Jenkins by Sophie may
• 10,620 points
35,835 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP