File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes help with error on using HSSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help with error on using HSSF" Watch "help with error on using HSSF" New topic
Author

help with error on using HSSF

Rick Hunter
Greenhorn

Joined: Jul 04, 2002
Posts: 4
i get this error:
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.poi.util.POILogFactory.<clinit>(POILogFactory.java:76)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<clinit>(HSSFWorkbook.java:113)
anyone know how to solve this? i already tried setting the classpaths for the POI jars. i tried copying the POI jars to my web-inf/lib folder of my web server, but still no luck.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
you need the commons-logging.jar.
It can be found in the zip you downloaded from jakarta under lib.
Then you can compile
Rick Hunter
Greenhorn

Joined: Jul 04, 2002
Posts: 4
Originally posted by Oliver Refle:
you need the commons-logging.jar.
It can be found in the zip you downloaded from jakarta under lib.
Then you can compile

im already using the commons-logging.jar. i tried setting the classpath for it, and copying it to my web-inf/lib folder. what should i do about the commons-logging.jar?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with error on using HSSF
 
Similar Threads
Whats wrong with my axis2 in my wls 8.1?
Web Service *Client*
Running tiles on weblogic 7 urgent
Classpath
Opening an Excel file