java 读取excel 文件 Unable to recognize OLE stream 错误

来源:互联网 发布:js页面onload 编辑:程序博客网 时间:2024/05/18 02:11

使用 Java 代码读取 excel 文件代码时报错如下:

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 jxl.Workbook.getWorkbook(Workbook.java:253)
    at test1.main(test1.java:25)

 

原因:不支出读取 excel 2007 文件(*.xlsx)。只支持 excel 2003 (*.xls)。

0 0
原创粉丝点击