class file has wrong version 49.0, should be 48.0
在 JBuilderX 中同一个项目,我将 JDK 的版本从 1.4 改成 1.5 后就报如下错误:
"SMS.java ": cannot access java.lang.Object,bad class file: D:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar\java\lang\Object.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 13, column 26
------解决方案--------------------低版本的jre 运行高版本的jdk 编译的类
肯定有错误
不会向上兼容的
------解决方案--------------------重新编译一下应该就可以了
------解决方案--------------------在jdk1.4.2上编译