Build failure because of "class file has wrong version 52.0, should be 49.0

sai sravya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 20, 2022

Bamboo build failing because of the error "class file has wrong version 52.0, should be 49.0

If the compiler version has to be changed to the latest, how can we do that.pom.PNG

This is the pom that I am currently using.

1 answer

0 votes
Anonymous Coward
Contributor
April 20, 2022

Simon says:

' Your maven configuration is set to compile for Java 1.8 while your compiler is 1.5 (class file version 49.0)

Make sure you have the correct compiler version installed on your system (1.8 since you want to compile with it) and set your JAVA_HOME to point to the JDK1.8. When your settings are correct, running the command:

javac

in a terminal should result in the output for Java 1.8 and your maven build should work fine.

I hope this helps.'

Simon out.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events