This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POI: problem reading Excel File  RSS feed

 
Ranch Hand
Posts: 49
  • 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 :

 
Saloon Keeper
Posts: 4344
108
  • 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.
 
Rancher
Posts: 2862
32
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!