File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Reading Word document Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Reading Word document" Watch "Reading Word document" New topic
Author

Reading Word document

Lokesh Tank
Greenhorn

Joined: May 08, 2010
Posts: 13
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: 2329
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
Greenhorn

Joined: May 08, 2010
Posts: 13
Thanks for your help. I am able to read word document using same library versions.
 
IntelliJ Java IDE
 
subject: Reading Word document
 
Threads others viewed
HWPF POI
How to print different type of document types in java ?
Opening Word Doc from JSP Page using POI
Reading word Documents Using JAVA
Landscape mode for word document
developer file tools