exception while reading Excel file with apache poi

后端 未结 5 2050
别跟我提以往
别跟我提以往 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:11

    You don't have XMLBeans in your classpath.

    0 讨论(0)
  • 2021-01-21 05:11

    I downloaded xmlbeans.jar and added to Library as External Jar. It resolved my issue.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-01-21 05:16

    You're missing the extra jar files that come with POI. Include them in your classpath.

    0 讨论(0)
  • 2021-01-21 05:21

    You download extra jar file. You can download :

    http://www.findjar.com/index.x;jsessionid=D9C61BD4B98370C199118B8C53CC689F?query=org.apache.xmlbeans.XmlObject

    0 讨论(0)
提交回复
热议问题