File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Reading Word document" Watch "Reading Word document" New topic

Reading Word document

Sanjoo Singh
Ranch Hand

Joined: May 08, 2010
Posts: 33
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

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

Joined: May 08, 2010
Posts: 33
Thanks for your help. I am able to read word document using same library versions.
subject: Reading Word document
It's not a secret anymore!