Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

shubham pateriya
Posts: 5
  • 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.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!