NoSuchMethodError in main thread while reading xlsx using apache poi

前端 未结 3 2018
隐瞒了意图╮
隐瞒了意图╮ 2021-01-12 14:07

my code is

[...]
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.X         


        
3条回答
  •  迷失自我
    2021-01-12 14:35

    I ran into exactly the same issue as you, and I found the following jar files have to be used to solve the program:

    • poi-bin-3.8.zip
    • opencsv-2.3.jar
    • poi-ooxml-3.8.jar
    • poi-ooxml-schemas-3.8.jar
    • xmlbeans-2.3.0.jar
    • dom4j-1.6.1.jar

    Newer version will bring trouble.

提交回复
热议问题