如何查看jar包的jdk版本

jdk 1.2-->major version 46

jdk 1.3-->major version 47

jdk 1.4-->major version 48

jdk 1.5-->major version 49

jdk 1.6-->major version 50

jdk 1.7-->major version 51

jdk 1.8-->major version 52

jdk 1.9-->major version 53


第一: 在META-INF\MANIFEST.MF  可以看出JDK版本

Manifest-Version: 1.0
Implementation-Title: Kudu Java Client
Implementation-Version: 1.3.0
Archiver-Version: Plexus Archiver
Built-By: todd
Specification-Vendor: The Apache Software Foundation
Specification-Title: Kudu Java Client
Implementation-Vendor-Id: org.apache.kudu
Implementation-Vendor: The Apache Software Foundation
Created-By: Apache Maven 3.0.4
Build-Jdk: 1.8.0_05
Specification-Version: 1.3.0
Implementation-URL: https://www.apache.org/kudu-parent/kudu-client/


第二:编译class

javap -verbose xxx.class   可以看出 major version 53










你可能感兴趣的:(java)