File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError coming while reading .xlsx file in java project

shubham pateriya
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using following code in my project to process .xlsx file

I have added follwoing jar files in my classpath:
(1) poi-3.6-20091214
(2) dom4j-1.6.1
(3) ooxml-schemas-1.0
(4) xerces-2.2.1
(5) poi-ooxml-3.6-20100309
(6) xmlbeans-2.3.0
(7) log4j-1.2.9

still I am getting "java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception."
I have noticed that when control is coming on

line, it throws exception, and come out of try- catch block.
Please help.
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic