This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply 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.
 
jQuery in Action, 2nd edition
 
subject: java.lang.NoClassDefFoundError coming while reading .xlsx file in java project
 
Similar Threads
Read a .xls,.xlsx file format using XSSF
Getting "java.lang.OutOfMemoryError: PermGen space" exception while reading xlsx file using POI 3.7
reading excel xlsx files to convert into CSV format
POI: [WARNING] Unknown Ptg 3c (60)-while reading a excel file
Opening an Excel file