Software Company Software Company - 1 year ago 98
Java Question

NoClassDefFoundError: org/apache/poi/ss/formula/udf/UDFFinder error in java

hi i am writing a excel using apache poi.I am using SXSSFWorkbook for it.But when this code executes i am getting this error again and again.
Caused by: java.lang.NoClassDefFoundError: org/apache/poi/ss/formula/udf/UDFFinder

my sample code is

Workbook wb = new SXSSFWorkbook(); // i am getting error here
SXSSFSheet s = (SXSSFSheet)wb.createSheet("Import List");

and dependency which i am using for this is


now please give me some solution to resolve this

Answer Source

Your poi jar version is not matching the poi-ooxml jar version

poi-ooxml-3.10-FINAL depends on poi-3.10-FINAL

You either remove dependency on poi as poi-ooxml brings needed version or add proper version for poi

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download