Cannot import XSSF in Apache POI

后端 未结 11 650
无人及你
无人及你 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:53

    I needed the following files for my implementation:

    • poi-ooxml-schemas-3.14.20160307.jar
    • commons-codec-1.10.jar (this was in "lib" folder of the zip file you get from apache)
    • curvesapi-1.03.jar (in "ooxml-lib" folder)
    • poi-3.14-20160307.jar
    • poi-ooxml-3.14-20160307.jar
    • xmlbeans-2.6.0.jar (in "ooxml-lib" folder)

    (though honestly, I'm not completely sure they are all necessary...) It's a little confusing because they are packaged that way. I needed to place them manually in my own "lib" folder and then add the references...

    Maven always seems to download more than I need, so I always place libaries/dlls and things like that manually.

提交回复
热议问题