Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Java process .waitFor() problem (http://www.go4expert.com/forums/java-process-waitfor-t20063/)

AguyWHOisME 12Nov2009 13:06

Java process .waitFor() problem
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?!

AguyWHOisME 12Nov2009 13:23

Re: Java process .waitFor() problem
sorry for the double-post

shabbir 12Nov2009 13:49

Re: Java process .waitFor() problem
Its ok and I have closed your other thread.

All times are GMT +5.5. The time now is 17:48.