How can I find the target Java version for a compiled class?

前端 未结 5 1543
萌比男神i
萌比男神i 2020-12-01 08:22

Duplicate:

Tool to read and display Java .class versions

If I have a compiled Java class, is there a way to tell from just the cla

5条回答
  •  感情败类
    2020-12-01 09:20

    You can look at the byte offset 6 and 7 in the file (in a hex dump probably), which tells you which version is used. I think the Bytecode Visualizer (eclipse plugin) can see which version a class file is made for.

    Further reading

提交回复
热议问题