public class Runtime extends Object
Modifier and Type | Method and Description |
---|---|
Process |
exec(String command)
Executes the specified string command in a separate process.
|
static void |
exec(String command,
boolean blocking)
Executes the specified single command in a separate process.
|
void |
exit(int i)
Exits the application.
|
long |
freeMemory() |
void |
gc()
Requests that GC be run.
|
static Runtime |
getRuntime() |
long |
totalMemory() |
public void exit(int i)
i
- Numeric ERRORLEVEL to be returned by the application on exit.public long freeMemory()
public long totalMemory()
public void gc()
public static Runtime getRuntime()
public Process exec(String command)
ConsoleProcess
object is returned providing
the ability to interact with the session and retrieve output and/or
provide input.command
- Command line textpublic static void exec(String command, boolean blocking)
command
- Command line textblocking
- set TRUE to wait for command completion.