Topic: 项目尝试升级到jdk1.5,出现该问题何解?

  Print this page

1.项目尝试升级到jdk1.5,出现该问题何解? Copy to clipboard
Posted by: microjuz
Posted on: 2006-01-05 12:53

已有的工程jre环境改为1.5,编译出现奇怪的错误!谁能告诉我何解?

"Utility.java":cannot access java.lang.Object,bad class file: c:\……\jre1.5.0\lib\……\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……

class file has wrong version 49.0,should be 48.0 这其中的49.0和48.0什么意思?这种错误该如何处理呢?

使用jbuilderX的时候由该问题,该用eclipse编译就ok了,但是空指针多多阿,怎么会这样?

2.Re:项目尝试升级到jdk1.5,出现该问题何解? [Re: microjuz] Copy to clipboard
Posted by: why
Posted on: 2006-01-06 23:35

49.0 is 1.5 but 48.0 is 1.4.x
Apparently you are using a 1.4.x VM, please check the version and fix the JAVA_HOME and CLASSPATH.

Have you set up JBuilderX to use JDK 1.5? Don't ask me how -- I haven't used JBuilder for years.

3.Re:项目尝试升级到jdk1.5,出现该问题何解? [Re: microjuz] Copy to clipboard
Posted by: microjuz
Posted on: 2006-01-13 22:54

thanks alot~~


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923