I am using poi-3.5-beta5 to read excel file.
I am trying to open excel file through
XSSFWorkbook workBook = new XSSFWorkbook (xlsPath);
i am getting following error (although i am not using log4j)
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger at org.apache.poi.openxml4j.opc.Package.(Package.java:63) at org.apache.poi.POIXMLDocument.openPackage(POIXMLDocument.java:63) at org.apache.poi.xssf.usermodel.XSSFWorkbook.(XSSFWorkbook.java:173) at test.ExcelReader.displayFromExcel(ExcelReader.java:44) at test.ExcelReader.main(ExcelReader.java:138)
Please help me to sole this problem. Thanks