java技术研究

统计

留言簿(3)

阅读排行榜

评论排行榜

jre升级后遇到的版本不匹配问题

昨天升级了jre更新到update10,遇到版本不匹配的问题:
bad class file: /usr/java/jdk1.5.0_06/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.

这是因为编译环境和运行环境的不一致造成的,比如tomcat和jdk1.5配合的时候,可能就会出现。解决这个问题的方法:copy jdk1.5的lib/tools.jar到tomcat的common/lib/tools.jar,覆盖掉原有文件就可以了。

posted on 2007-01-11 10:50 小秦 阅读(1231) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: