Skip to content

Instantly share code, notes, and snippets.

@BadUncleX
Last active April 11, 2018 02:18
Show Gist options
  • Save BadUncleX/846af5fed25933fab450b846b97c1c63 to your computer and use it in GitHub Desktop.
Save BadUncleX/846af5fed25933fab450b846b97c1c63 to your computer and use it in GitHub Desktop.
查看 java class version jdk

使用 UE 打开 class 文件,第一行内容: 00000000h: CA FE BA BE 00 00 00 32 00 A9 07 00 02 01 00 37 ; 漱壕...2.?....7 前四个字节为固定的 CA FE BA BE ,接下来的四个字节为次版本号(0000)和主版本号(0032)。

33:JDK1.7
32:JDK1.6
31:JDK1.5 
30:JDK1.4 
2F:JDK1.3
2E: JDK1.2
2D: JDK1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment