Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help with error on using HSSF

 
Rick Hunter
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic