Java process .waitFor() problem

Discussion in 'Java' started by AguyWHOisME, Nov 12, 2009.

  1. AguyWHOisME

    AguyWHOisME New Member

    Joined:
    Nov 12, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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?!
     
  2. AguyWHOisME

    AguyWHOisME New Member

    Joined:
    Nov 12, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    sorry for the double-post
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Its ok and I have closed your other thread.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice