Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POI: problem reading Excel File  RSS feed

 
Roopesh Rana
Ranch Hand
Posts: 40
  • 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: 3564
77
  • 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: 1772
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!