I am running a java program in Windows that collects log from Windows events. A .csv file is created on which certain operations are to be performed.
The commands a
You need to use waitFor() instead of wait(). That way your thread will block until the executed command finishes.
waitFor()
wait()