Created
February 17, 2014 07:25
-
-
Save bjpeterdelacruz/9046202 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProcessBuilder builder = new ProcessBuilder("java", "-classpath", classpath, "com.a.b.c.TestProgram", "hello", "world"); | |
// java -classpath [classpath] com.a.b.c.TestProgram hello world | |
Process process = builder.start(); | |
// Process is now running. | |
// Block until the process terminates, and then get its exit value. | |
int exitValue = process.waitFor(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment