Hi, I am running a processing in my program and the program needs to wait for the process until it finishes. While the processing is executing, a file is automatically written and it is opened as a window, but the window does not close until I mannully close it. Is there any method/code to close the window when the process is done?
Process proc = Runtime.getRuntime().exec( "ls "+ something);
proc.waitFor();
thanks!
