本文介绍了jad“版本不匹配:major.minor = 49.0,预期= 45.3",.class文件的版本是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用jad来反编译该类,但是在AIX系统中,会抛出此类错误.
I used jad to decompile the class but in AIX system, such error thrown.
Version mismatch: major.minor = 49.0, expected = 45.3
我不知道.class文件的版本是什么,如何避免这种情况?
I don't know what's the version of .class file, how can I avoid this?
推荐答案
该类是为JDK5编译的,您的工具仅支持JDK1.1.
The class was compiled for JDK5, your tools only support JDK1.1.
您可能需要在该计算机上使用jad的较新版本(或整个JDK)(或为Java的较旧版本编译代码).
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).
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).
这篇关于jad“版本不匹配:major.minor = 49.0,预期= 45.3",.class文件的版本是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!