org.ops4j.exec
Interface JavaRunner

All Known Subinterfaces:
StoppableJavaRunner
All Known Implementing Classes:
DefaultJavaRunner

public interface JavaRunner

Simple API for an external Java runner service.

Since:
March 14, 2008
Author:
Stuart McCulloch, Alin Dreghiciu (adreghiciu@gmail.com)

Method Summary
 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.
 

Method Detail

exec

void exec(String[] vmOptions,
          String[] classpath,
          String mainClass,
          String[] programOptions,
          String javaHome,
          File workingDir,
          String[] environmentVariables)
          throws ExecutionException
Starts the selected Java program, up to service implementation whether it waits for it to exit.

Parameters:
vmOptions - selected JVM options
classpath - application class path
mainClass - main program entry point
programOptions - program specific options
javaHome - java home directory
workingDir - working directory
environmentVariables - optional environment variables
Throws:
org.ops4j.ExecutionException.runner.platform.PlatformException - if something goes wrong
ExecutionException

exec

void exec(String[] vmOptions,
          String[] classpath,
          String mainClass,
          String[] programOptions,
          String javaHome,
          File workingDir)
          throws ExecutionException
Starts the selected Java program, up to service implementation whether it waits for it to exit.

Parameters:
vmOptions - selected JVM options
classpath - application class path
mainClass - main program entry point
programOptions - program specific options
javaHome - java home directory
workingDir - working directory
Throws:
org.ops4j.ExecutionException.runner.platform.PlatformException - if something goes wrong
ExecutionException


Copyright © 2006-2013 OPS4J - Open Participation Software for Java. All Rights Reserved.