public interface JavaRunner
Modifier and Type | Method and Description |
---|---|
void |
exec(String[] vmOptions,
String[] classpath,
String mainClass,
String[] programOptions,
String javaHome,
File workingDir)
Starts the selected Java program, up to service implementation whether it waits for it to exit.
|
void |
exec(String[] vmOptions,
String[] classpath,
String mainClass,
String[] programOptions,
String javaHome,
File workingDir,
String[] environmentVariables)
Starts the selected Java program, up to service implementation whether it waits for it to exit.
|
void exec(String[] vmOptions, String[] classpath, String mainClass, String[] programOptions, String javaHome, File workingDir, String[] environmentVariables) throws ExecutionException
vmOptions
- selected JVM optionsclasspath
- application class pathmainClass
- main program entry pointprogramOptions
- program specific optionsjavaHome
- java home directoryworkingDir
- working directoryenvironmentVariables
- optional environment variablesorg.ops4j.ExecutionException.runner.platform.PlatformException
- if something goes wrongExecutionException
void exec(String[] vmOptions, String[] classpath, String mainClass, String[] programOptions, String javaHome, File workingDir) throws ExecutionException
vmOptions
- selected JVM optionsclasspath
- application class pathmainClass
- main program entry pointprogramOptions
- program specific optionsjavaHome
- java home directoryworkingDir
- working directoryorg.ops4j.ExecutionException.runner.platform.PlatformException
- if something goes wrongExecutionException
Copyright © 2006–2019 OPS4J - Open Participation Software for Java. All rights reserved.