This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POI: problem reading Excel File

 
Roopesh Rana
Ranch Hand
Posts: 39
  • 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: 3320
61
  • 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: 1627
21
  • 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!