Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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

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.
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!