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.
This is the pom that I am currently using.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.