Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POI: problem reading Excel File  RSS feed

 
Roopesh Rana
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to read excel file through java code.
My code is :



But I am getting exception

Exception is :

 
Tim Moores
Saloon Keeper
Posts: 3758
78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which jar files do you have in the classpath? POI consists of at least 4 jar files, and possibly some more, depending on which features you use.
 
Norm Radder
Rancher
Posts: 2046
26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/DataValidationHelper

Make sure the jar file with the class named in the error message is on the classpath.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!