aspose file tools*
The moose likes Other Open Source Projects and the fly likes      java.lang.NoClassDefFoundError coming while reading .xlsx file in java project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "     java.lang.NoClassDefFoundError coming while reading .xlsx file in java project" Watch "     java.lang.NoClassDefFoundError coming while reading .xlsx file in java project" New topic
Author

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

shubham pateriya
Greenhorn

Joined: Dec 15, 2011
Posts: 5
Hi,
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.
 
Don't get me started about those stupid light bulbs.
 
subject: java.lang.NoClassDefFoundError coming while reading .xlsx file in java project