Instead of Runtime
, you should probably use ProcessBuilder
, though I don’t know if something else is even more appropriate in your case (running a Java process in particular).
More Related Contents:
- How to get a list of current open windows/process with Java?
- Killing a process using Java
- Starting a process in Java?
- Executing a Java application in a separate process
- Runtime’s exec() method is not redirecting the output
- How to stop java process gracefully?
- How to get PID of process I’ve just started within java program?
- How to open the command prompt and insert commands using Java?
- How do I trim a file extension from a String in Java?
- how to compile & run java program in another java program?
- How to Daemonize a Java Program?
- How to set working directory with ProcessBuilder
- how to change the name of a Java application process?
- How to find and kill running Win-Processes from within Java?
- Writing to InputStream of a Java Process
- How can I cause a child process to exit when the parent does?
- How to add a timeout value when using Java’s Runtime.exec()?
- Java native process timeout
- Redirection with Runtime.getRuntime().exec() doesn’t work
- Is there one JVM per Java application?
- CreateProcess error=2, The system cannot find the file specified
- Unable to read InputStream from Java Process (Runtime.getRuntime().exec() or ProcessBuilder)
- Java tool/method to force-kill a child process
- Launch Firefox and Wait until it is Closed
- How do I find the process ID (pid) of a process started in java? [duplicate]
- check if some exe program is running on the windows
- Having spaces in Runtime.getRuntime().exec with 2 executables
- Redirect stdin and stdout in Java
- Launch Firefox and Wait until it is Closed
- Runtime.getRuntime().exec(cmd) hanging