Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,269
Community Members
 
Community Events
165
Community Groups

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

Edited

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

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
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

957 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you