Skip to content
Advertisement

Apache POI java.lang.NoSuchMethodError

My code is below:

JavaScript

And the error code I get is:

JavaScript

The dependencies for Apache that I have added to my netbeans library are:

JavaScript

And from here I pretty much have no idea what to do. Can anyone tell me if my code is wrong or what other dependencies I need?

Advertisement

Answer

Ok, so as rgettman explained, I had to update my poi-ooxml-3.11.jar to poi-ooxml-3.17.jar, which can be done by just redownloading the binary source file and extracting the .zip file. After both were updated, I got another error, and this was fixed by adding the commons-collections4-4.1.jar and poi-ooxml-schemas-3.17.jar. After adding these dependencies, my code ran. Hope this helps anyone in the future.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement