NoClassDefFoundError: javax/xml/stream/XMLStreamException

前端 未结 1 979
独厮守ぢ
独厮守ぢ 2021-01-12 19:53

I am getting the following exception while trying to write an .xlsx file using Apache POI

NoClassDefFoundError: javax/xml/stream/XMLStreamExcept         


        
相关标签:
1条回答
  • 2021-01-12 20:23

    You're missing the stax API jar

    If you look at the POI Components page you'll see that the ooxml-schemas jar depends on a STAX API jar (most typically provided by stax-api-1.0.1.jar)

    Look in your POI binary download, and in the ooxml-lib directory you'll see the jar you need. Alternately, if you use Maven, it'll download the dependency for you

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