com.jstatcom.engine
Class SysRun
- java.lang.Object
-
- com.jstatcom.engine.SysRun
-
public final class SysRun extends java.lang.ObjectHelper class to invoke system commands via static methods.
-
-
Constructor Summary
Constructors Constructor and Description SysRun()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidinvoke(java.lang.String command, java.lang.String arg)Creates a new process with an argument and returns immediately.
-
-
-
Method Detail
-
invoke
public static void invoke(java.lang.String command, java.lang.String arg)Creates a new process with an argument and returns immediately. This method could for example be used to call a viewer with a file argument. The viewer should be installed on the system.- Parameters:
command- name of the executable to runarg- argument for the process to create- Throws:
java.lang.IllegalArgumentException-if (command == null || command.length() == 0)java.lang.RuntimeException- if an execute failed due to anIOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG