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 [mailto:[EMAIL PROTECTED] > 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. > > http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
