Cannot import XSSF in Apache POI

后端 未结 11 647
无人及你
无人及你 2020-11-29 01:59

I am referencing the version 3.7 of the Apache POI and I am getting a \"cannot be resolved\" error when I do:

import org.apache.poi.xssf.usermodel.XSSFWorkbo         


        
11条回答
  •  佛祖请我去吃肉
    2020-11-29 02:58

    For OOXML to work you need the POI-OOXML jar which is separately packaged from the POI jar.

    Download the POI-OOXML jar from the following location -

    http://repo1.maven.org/maven2/org/apache/poi/poi-ooxml/3.11/poi-ooxml-3.11.jar

    For Maven2 add the below dependency -

    
        org.apache.poi
        poi-ooxml
        3.11
    
    

提交回复
热议问题