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 15 in Jenkins by Koyal
65 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 15 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 25 in Jenkins by Kalgi
20 views
0 votes
1 answer

Why is it displaying Jenkins build failure for Android app

I think you should try this. Try Uninstalling ...READ MORE

answered Apr 12, 2018 in Jenkins by shubham
• 6,480 points
158 views
0 votes
2 answers

Is possible for Jenkins to auto start and stop slave nodes?

Try Jenkins Plugin called as Slave SetupPlugin. This ...READ MORE

answered Aug 6, 2018 in Jenkins by Nilesh
• 6,900 points
421 views
0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,520 points
91 views
0 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
• 56,120 points
56 views
+13 votes
2 answers
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
• 35,750 points
260 views
+2 votes
6 answers

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.