java.lang.UnsupportedClassVersionError:

老师,我执行bin目录下scanner的时候报了JDK版本错误的问题。是直接从8升到11吗?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

https://docs.oracle.com/javase/specs/jvms/se12/html/jvms-4.html

Table 4.1-A. class file format major versions

Java SE Corresponding major version Supported major versions
1.0.2 45 45
1.1 45 45
1.2 46 45 … 46
1.3 47 45 … 47
1.4 48 45 … 48
5.0 49 45 … 49
6 50 45 … 50
7 51 45 … 51
8 52 45 … 52
9 53 45 … 53
10 54 45 … 54
11 55 45 … 55
12 56 45 … 56
关闭