A friendly place for programming greenhorns!
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
Author
Reading Word document
Lokesh Tank
Greenhorn
Joined: May 08, 2010
Posts: 18
posted
Dec 16, 2011 10:29:03
0
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: 2407
posted
Dec 16, 2011 12:17:56
0
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: 18
posted
Dec 16, 2011 12:27:59
0
Thanks for your help. I am able to read word document using same library versions.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Reading Word document
Similar Threads
HWPF POI
Opening Word Doc from JSP Page using POI
How to print different type of document types in java ?
Landscape mode for word document
Reading word Documents Using JAVA
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter