I'm using poi-3.5-beta5 to see stand out file.
I'm attempting to open stand out file through XSSFWorkbook workBook = new XSSFWorkbook (xlsPath)

i get following error (although i'm not using log4j)

Exception in thread "primary" 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.primary(ExcelReader.java:138)

Help me to sole this issue. Thanks

POI most likely includes a reliance upon log4j. Just range from the log4j jar inside your classpath.

Appears like you'll need Log4J in your classpath.

poi-3.5-beta? They've release POI 3.7, it's stable, and effective. Plus there is a new package known as SS (SpreadSheet), it may handdle both HSSF and XSSF files without having to worry about type

Particulars: http://poi.apache.org/spreadsheet/converting.html

If U obtain that problem still, I would like to ensure you get information:

Might be you will possibly not include poi-ooxml-version.jar file.

Since you are processing Stand out format 2007, the XSSF Format implementations are incorporated within this jar file...

Makes sense. Some library (POI) needs logging hence Log4j reference that's missing from classpath.

It is similar to you desired to possess a beer, however they forced you to definitely buy whole brewery and party of hundred folks visiting your home.

When designers will pullout their heads from...