【发布时间】:2009-11-19 20:16:33
【问题描述】:
我正在使用 JXL API 处理应用程序,当我尝试使用 eclipse IDE 进行编译时,它工作正常,当我尝试在命令提示符下编译并显示以下异常时,同样无法编译..
Extract.java:6: cannot access jxl.read.biff.BiffException bad class file: C:\Program Files\Java\jdk1.5.0_01\jre\lib\ext\jxl.jar(jxl/read/biff/BiffException.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
import jxl.read.biff.BiffException;
^
1 error
编辑:
我能够使用 JDK 1.6 执行。既然JDK 1.6也必须兼容低版本,为什么不支持JDK 1.5编译的类文件呢。
【问题讨论】:
-
感谢大家的回答和 cmets,我已经按照 oscar reyes 的建议解决了这个问题。