Try calling .join() on the thread object you created to run your Runnable. This will make the current thread wait until the child has finished. I forgot the reason why is solves the problem, it must be in the Java concurrency tutorials somewhere.

On Feb 21, 2012 4:26 PM, "Karl Weber" <> wrote: