[英]java.lang.unsupportedclassversionerror akka/actor/Actor: unsupported major.minor version 52.0
I have a Java/Scala/Akka project that I am building in Jenkins. 我在詹金斯(Jenkins)建立了一个Java / Scala / Akka项目。 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. 我查找了该错误,例如在此处如何修复java.lang.UnsupportedClassVersionError:不支持的major.minor版本 ,原因是使用的是Java的较早版本而不是Java 8。
So I added to the Jenkins configure
JAVA_HOME=/my/path/to/jdk/1.8/exec
. 所以我加入詹金斯
configure
JAVA_HOME=/my/path/to/jdk/1.8/exec
。
However, the error persists. 但是,错误仍然存在。 So what could be the cause?
那是什么原因呢?
Please add JDK 8 in the Jenkins configuration and set the configured JDK in a job configuration. 请在Jenkins配置中添加JDK 8,并在作业配置中设置已配置的JDK。 Nothing hard there.
那里没什么难的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.