I have a question in the below code. I am trying to run a "server.bat" in a specified location. The batch file runs and waits for multiple clients and it stops when we close it. Now my problem is when I run the below code my server is running perfectly but the program waits for the batch to complete inspite of me not giving waitfor method for the process. My program shouldn't wait for the batch file to complete. It has to run the command in a new window and control the other flow of program which is not done here in this program. Can anyone help me whats the problem is?
You are still waiting for the process to finish, as that's the only moment when the process' output will end. So the JavaWorld article "When Runtime.exec() won't" is still valid here -- read from the error stream as well.