lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kuketayev, Argyn" <>
Subject RE: Using Runtime.exec to extract text [Was: Bridge with OO]
Date Tue, 20 Apr 2004 18:10:09 GMT
Runtime.exec() works fine for me. The issue is with these tools, they
hang up on certain files. You can launch them in command line and they
don't crash but freeze. Most files are processed well. So, the only way
to deal with this is to destroy the process if it takes "too long" or
identify somehow that it's "frozen".

> -----Original Message-----
> From: Stephane James Vaucher [] 
> Sent: Tuesday, April 20, 2004 12:08 PM
> To: Lucene Users List
> Subject: Using Runtime.exec to extract text [Was: Bridge with OO]
> In case you don't know. Using Runtime.exec() on windows, you need to 
> consume the output streams of the application will block. 
> This is not the 
> case on linux.
> In short:
> Because some native platforms only provide limited buffer size for 
> standard input and output streams, failure to promptly write 
> the input 
> stream or read the output stream of the subprocess may cause the 
> subprocess to block, and even deadlock.
> HTH,
> sv

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message