You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by mcarcelen <mc...@isoco.com> on 2006/07/12 09:46:06 UTC

Support WordExtractor

Hi all!
I´m working with poi-bin-3.0-alpha2-20060616 I´m trying to extract text from
a Word document using the class org.apache.poi.hwpf.extractor.WordExtractor
but I get the following bugs "Exception in thread main
java.lang.NoSuchMethodError"
I have also tried with the parameter -doc and the name of the word document
but without success I´ve execute the classes QuickTest.class and
HWPFDocument.class, also with bugs Can anyone help me?
Thanks all
Cheers
Teresa


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


RE: Support WordExtractor

Posted by mcarcelen <mc...@isoco.com>.
Thanks a lot Nick
Cheers

-----Mensaje original-----
De: Nick Burch [mailto:nick@torchbox.com] 
Enviado el: miércoles, 12 de julio de 2006 13:25
Para: POI Developers List
Asunto: RE: Support WordExtractor

On Wed, 12 Jul 2006, mcarcelen wrote:
> Exception in thread "main" java.lang.NoSuchMethodError: main
>
> I know that WordExtractor hasn´t main() but I want to extract text from a
> word document

As you're not the first person to expect WordExtractor to have a main() 
method, I've added one. It should show up in tomorrow's svn builds.

That said, it is expected that you'll use WordExtractor in your own code. 
That way you get the choice of which text extraction method to use.

Nick


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


RE: Support WordExtractor

Posted by Nick Burch <ni...@torchbox.com>.
On Wed, 12 Jul 2006, mcarcelen wrote:
> Exception in thread "main" java.lang.NoSuchMethodError: main
>
> I know that WordExtractor hasn´t main() but I want to extract text from a
> word document

As you're not the first person to expect WordExtractor to have a main() 
method, I've added one. It should show up in tomorrow's svn builds.

That said, it is expected that you'll use WordExtractor in your own code. 
That way you get the choice of which text extraction method to use.

Nick

RE: Support WordExtractor

Posted by mcarcelen <mc...@isoco.com>.
Yes, I used both of them. I did the following:
 
> java -cp poi-3.0-alpha2-20060616.jar;
poi-scratchpad-3.0-alpha2-20060616.jar
org.apache.poi.hwpf.extractor.WordExtractor name.doc

I obtain

Exception in thread "main" java.lang.NoSuchMethodError: main

I know that WordExtractor hasn´t main() but I want to extract text from a
word document

Cheers
Teresa

-----Mensaje original-----
De: Nick Burch [mailto:nick@torchbox.com] 
Enviado el: miércoles, 12 de julio de 2006 12:49
Para: POI Developers List
Asunto: RE: Support WordExtractor

On Wed, 12 Jul 2006, mcarcelen wrote:
> I had used the poi-3.0-alpha2-20060616.jar and the
> poi-scratchpad-3.0-alpha2-20060616.jar but without success

You need both of them!

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


RE: Support WordExtractor

Posted by Nick Burch <ni...@torchbox.com>.
On Wed, 12 Jul 2006, mcarcelen wrote:
> I had used the poi-3.0-alpha2-20060616.jar and the
> poi-scratchpad-3.0-alpha2-20060616.jar but without success

You need both of them!

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


RE: Support WordExtractor

Posted by mcarcelen <mc...@isoco.com>.
I had used the poi-3.0-alpha2-20060616.jar and the
poi-scratchpad-3.0-alpha2-20060616.jar but without success
Thanks
Teresa


-----Mensaje original-----
De: Nick Burch [mailto:nick@torchbox.com] 
Enviado el: miércoles, 12 de julio de 2006 11:57
Para: POI Developers List
Asunto: Re: Support WordExtractor

On Wed, 12 Jul 2006, mcarcelen wrote:
> I´m working with poi-bin-3.0-alpha2-20060616 I´m trying to extract text
from
> a Word document using the class
org.apache.poi.hwpf.extractor.WordExtractor
> but I get the following bugs "Exception in thread main
> java.lang.NoSuchMethodError"

You need the scratchpad jar too

Nick


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Re: Support WordExtractor

Posted by Nick Burch <ni...@torchbox.com>.
On Wed, 12 Jul 2006, mcarcelen wrote:
> I´m working with poi-bin-3.0-alpha2-20060616 I´m trying to extract text from
> a Word document using the class org.apache.poi.hwpf.extractor.WordExtractor
> but I get the following bugs "Exception in thread main
> java.lang.NoSuchMethodError"

You need the scratchpad jar too

Nick