简体   繁体   中英

Jenkins Exception in thread “main” java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/cli/Main : Unsupported major.minor version 52.0

I have the following problem, when executing Jenkins Job, I get the following error:

error_sq

INFO: Java Version: 7 SonnarQube : 6.7.3-alpine SonarQube Scanner for MSBuild 4.3.0.1333 Jenkins Version: 2.107.3

Help me pls...

You are trying to run an application with a JVM with a lower version number than the class was compiled with. Class version 52.0 equates to Java 1.8, and you are probably using 1.7, 1.6 or even lower. There will be no problem running it with a 1.8 or higher VM.

You can check your VM version by executing java -version .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM