Cannot import XSSF in Apache POI

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

    I had the same problem, so I dug through the poi-3.17.jar file and there was no xssf package inside.

    I then went through the other files and found xssf int the poi-ooxml-3.17.jar

    So it seems the solutions is to add

    poi-ooxml-3.17.jar
    

    to your project, as that seems to make it work (for me at least)

提交回复
热议问题