【发布时间】:2022-12-11 11:16:16
【问题描述】:
伙计们!
我在 Linux 上有 2 个独立的服务器用于 Jenkins 和 Sonarqube。代码是用 Java 1.8 编写的,可以使用 Jenkins 编译。一切正常。 它在 SonarQube 步骤失败,因为我们的 SonarQube 使用 Java 11,并且失败并出现此错误。
ERROR: Error during SonarScanner execution java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
我怎样才能解决这个问题?
【问题讨论】: