Jenkins on Linuz(AWS AMI) error "java.lang.UnsupportedClassVersionError: 51.0"

0 votes

I am trying to install Jenkins on AWS Linux Image. I have installed Jenkins using the following command:

sudo yum install jenkins -y

But now when I start the service using the following command:

sudo service jenkins start 

I get the following error:

Complete!
[ec2-user@ip-10-0-2-100 ~]$ sudo service jenkins start
Starting Jenkins Aug 29, 2019 12:18:03 PM Main verifyJavaVersion
SEVERE: Running with Java class version 51, which is older than the Minimum required version 52. See https://jenkins.io/redirect/java-support/
java.lang.UnsupportedClassVersionError: 51.0
        at Main.verifyJavaVersion(Main.java:182)
        at Main.main(Main.java:142)

Jenkins requires Java versions [8, 11] but you are running with Java 1.7 from /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.231.x86_64/jre
java.lang.UnsupportedClassVersionError: 51.0
        at Main.verifyJavaVersion(Main.java:182)
        at Main.main(Main.java:142)
                                                           [  OK  ]
[ec2-user@ip-10-0-2-100 ~]$
Aug 29 in AWS by Meghna
35 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

A strange spark ERROR on AWS EMR

Those warning messages can be suppressed by ...READ MORE

answered Jul 13, 2018 in AWS by Flying geek
• 3,150 points
65 views
0 votes
1 answer

aws java sdk for ssm gives java.lang.NoSuchFieldError: SIGNING_REGION

You may start with Checking that you ...READ MORE

answered Aug 6, 2018 in AWS by Priyaj
• 56,540 points
703 views
0 votes
1 answer

Getting memory leak error on AWS EMR - Saving Dataframe into hive external table on S3 -

You can start by creating  a temp ...READ MORE

answered Aug 9, 2018 in AWS by Priyaj
• 56,540 points
144 views
0 votes
2 answers

Error : No supported authentication methods available on AWS

Diff from other answers above: I received this ...READ MORE

answered Mar 25 in AWS by Bathinda
• 140 points
5,730 views
0 votes
1 answer