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

How to read xls, xlsx and open office excel formats from java. Any pointers ? Kindly help.

 
Deepak S Babu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used XSSF but not successful. Code Below.


While running (compilation was successful) getting as Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook




 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you don't have all the required POI jar files in the classpath; the missing would be named poi-3.7-20101029.jar or something like that.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch !

Next time you want to post some code, please UseCodeTags. I'll add them for you this time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic