I have a Java/Scala/Akka project that I am building in Jenkins. For it, I am getting this error:
java.lang.unsupportedclassversionerror akka/actor/Actor: unsupported major.minor version 52.0
I looked up the error and for instance here How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version, the cause is that an older version of Java is used instead of Java 8.
So I added to the Jenkins configure
JAVA_HOME=/my/path/to/jdk/1.8/exec
.
However, the error persists. So what could be the cause?