Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("java -jar map.jar time.rel test.txt debug");
http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html
More Related Contents:
- Including all the jars in a directory within the Java classpath
- How do I parse command line arguments in Java?
- How to make pipes work with Runtime.exec()?
- Run a JAR file from the command line and specify classpath
- Difference between ProcessBuilder and Runtime.exec()
- process.waitFor() never returns
- How to execute command with parameters?
- How to invoke a Linux shell command from Java
- Runtime’s exec() method is not redirecting the output
- read the output from java exec
- Java Command line arguments
- Run single test from a JUnit class using command-line
- Running java in package from command line
- Catching Ctrl+C in Java
- Running a java program from another java program
- How to Execute Windows Commands Using Java – Change Network Settings
- Hide input on command line
- changing the working-directory of command from java
- Redirection with Runtime.getRuntime().exec() doesn’t work
- Running a JAR file without directly calling `java`
- Compiling multiple packages using the command line in Java
- Redirect Runtime.getRuntime().exec() output with System.setOut();
- How to interrupt java.util.Scanner nextLine call
- When I run the .jar, I get a “No lwjgl in java.library.path” error
- Best Way to Gracefully Shutdown a Java Command Line Program
- Runtime.getRuntime().exec()
- Having spaces in Runtime.getRuntime().exec with 2 executables
- How to launch JUnit 5 (Platform) from the command line (without Maven/Gradle)?
- Command Line Pipe Input in Java
- The best CLI parser for Java [duplicate]