我正在使用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编译的类文件。