exception while reading Excel file with apache poi

后端 未结 5 2089
别跟我提以往
别跟我提以往 2021-01-21 04:53

Problem reading Excel 2007 file .xlsx file extention, while I am trying to read with apache poi:

InputStream file = new FileInputStream(C:\\\\test.xlsx);

--->         


        
5条回答
  •  孤独总比滥情好
    2021-01-21 05:16

    you need to include a jar file named xmlbeans-x.x.x.jar that comes under folder "your_location_of_poi\poi-x.x\ooxml-lib\" in your classpath.

    Note: x.x is the version of poi that you are using and x.x.x is the version number of that jar file under the above mentioned folder

提交回复
热议问题