icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java
public Process runWithStartupDelay(Class<?> klass, String[] javaArguments,
			String[] processArguments, long processStartupTime)
			throws IOException, InterruptedException, TimeoutException {
		Process process = runWithConfirmation("", klass, javaArguments,
				processArguments);

		if (processStartupTime > 0) {
			Thread.sleep(processStartupTime);
		}

		return process;
	}
public Process runWithStartupDelay(Class<?> klass, String[] javaArguments,
			String[] processArguments, long processStartupTime)
			throws IOException, InterruptedException, TimeoutException {
		Process process = runWithConfirmation("", klass, javaArguments,
				processArguments);

		if (processStartupTime > 0) {
			Thread.sleep(processStartupTime);
		}

		return process;
	}
public Process runWithStartupDelay ( Class < ? > klass , String [ ] javaArguments , String [ ] processArguments , long processStartupTime ) throws IOException , InterruptedException , TimeoutException { Process process = runWithConfirmation ( "" , klass , javaArguments , processArguments ) ; if ( processStartupTime > 0 ) { Thread . sleep ( processStartupTime ) ; } return process ; }
Runs process with arguments based on a specified class in a separate VM.
Waits processStartupTime before returns the created process to a caller.

@param klass
of type Class
@param processStartupTime
time in milliseconds that launcher spend on waiting process
after it's start.
@param javaArguments
arguments for java
@param processArguments
arguments for process
@return Process
@throws IOException
when
@throws InterruptedException
when
@throws TimeoutException
if process startup is not completed in time.
Runs process with arguments based on a specified class in a separate VM . Waits processStartupTime before returns the created process to a caller .