Tag: jxl

编译时出现exception:错误的版本50.0,应该是49.0

我正在与JXL API的应用程序,当我尝试编译使用Eclipse IDE,它工作正常,同样不编译当我试图编译命令提示符,并显示下面的exception。 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中编译的类文件。

在java中读取Excel表单的更好的API是什么 – JXL或Apache POI

哪两个API更容易读取/写入/编辑excel表单? 这些API是否不支持CSV扩展? 使用JXL for file.xls和file.xlsx,我得到一个exception,如: jxl.read.biff.BiffException: Unable to recognize OLE stream at jxl.read.biff.CompoundFile.<init>(CompoundFile.java:116) at jxl.read.biff.File.<init>(File.java:127) at jxl.Workbook.getWorkbook(Workbook.java:268) at core.ReadXLSheet.contentReading(ReadXLSheet.java:46) at core.ReadXLSheet.init(ReadXLSheet.java:22) at core.ReadXLSheet.main(ReadXLSheet.java:72) 对于.xls和.xlsx扩展名都是如此。 我正在使用的Java版本是:JDK1.6