Java Process.waitFor() function

AguyWHOisME's Avatar, Join Date: Nov 2009
Newbie Member
I am using the Process class to use a batch for my java program. I have several, but I have one that isn't working. This batch file is calling 'find' on a very large file so it takes a long time to process. I am trying to pause the thread using p.waitFor(). The method returns immediately with the value '1'. This is obviously indicating an error in the process, but it doesn't indicate what the error is. Any help on how I can fix this?!
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Duplicate of Java process .waitFor() problem. Thread closed.