This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Reading Word document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Reading Word document" Watch "Reading Word document" New topic
Author

Reading Word document

Lokesh Tank
Ranch Hand

Joined: May 08, 2010
Posts: 32
I am trying to read word document using Apache POI package but getting following error:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.poi.hwpf.model.CHPBinTable.<init>([B[BIIILorg/apache/poi/hwpf/model/TextPieceTable;)V

I am using poi-scratchpad-3.5-FINAL.jar file. I look forward for any help/guidance in this regard.


Solution Spider
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
The usual reason is that two different library versions (in this case: POI) are used for compiling the code and for running the code.
Lokesh Tank
Ranch Hand

Joined: May 08, 2010
Posts: 32
Thanks for your help. I am able to read word document using same library versions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading Word document
 
Similar Threads
Landscape mode for word document
How to print different type of document types in java ?
HWPF POI
Reading word Documents Using JAVA
Opening Word Doc from JSP Page using POI