public final class ForkJavaProcess extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
exec(Class<?> classToExecute,
Map<String,String> environments)
Create a child process and wait for it to end.
|
public static int exec(Class<?> classToExecute, Map<String,String> environments) throws IOException, InterruptedException
classToExecute - The Java class to executeenvironments - A map of environment variables to pass in the processIOException - - If an IOException occurred in the processInterruptedException - - If an InterruptedException occurred in the processCopyright © 2018. All rights reserved.