hi,
i am a newbie to POI.
i am using poi-scratchpad-3.7-20101029 jar.
i am trying to read a document and trying write it on a pdf.
I am using the below code snippet in the process.
File docFile = new File("d:\\hello.doc");
FileInputStream fis=new FileInputStream(docFile.getAbsolutePath());
POIFSFileSystem pfs=new POIFSFileSystem(fis);
HWPFOldDocument doc=new HWPFOldDocument(pfs);
Word6Extractor docExtractor = new Word6Extractor(doc);
String [] docArray = docExtractor.getParagraphText();
I have imported the necessary class files.
When i am executing this as an independant java main file,its working.
but when i am using the same as a part of the web applcation,it throws the
exception shown below.
java.lang.NoSuchMethodError:
org.apache.poi.hwpf.model.TextPieceTable.add(Lorg/apache/poi/hwpf/model/TextPiece;)V
org.apache.poi.hwpf.HWPFOldDocument.<init>(HWPFOldDocument.java:89)
org.apache.poi.hwpf.HWPFOldDocument.<init>(HWPFOldDocument.java:42)
please help me how i can resolve this issue.
Thanks
Anish
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/throwing-Nosuchmethoderror-exception-while-using-POI-tp3405166p3405166.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]