jad “Version mismatch: major.minor = 49.0, expected = 45.3”, what's version of .class file?

别来无恙 提交于 2019-12-11 19:37:46

问题


I used jad to decompile the class but in AIX system, such error thrown.

Version mismatch: major.minor = 49.0, expected = 45.3

I don't know what's the version of .class file, how can I avoid this?


回答1:


The class was compiled for JDK5, your tools only support JDK1.1.

You probably need a newer version of jad (or the whole JDK) on that machine (or compile your code for an older version of Java).

major version number of the class file format being used:

J2SE 7 = 51 (0x33 hex),
J2SE 6.0 = 50 (0x32 hex),
J2SE 5.0 = 49 (0x31 hex),
JDK 1.4 = 48 (0x30 hex),
JDK 1.3 = 47 (0x2F hex),
JDK 1.2 = 46 (0x2E hex),
JDK 1.1 = 45 (0x2D hex).


来源:https://stackoverflow.com/questions/11361955/jad-version-mismatch-major-minor-49-0-expected-45-3-whats-version-of

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!