The Runtime class provides interaction with the underlying OS.
Defined in: Runtime.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
jls.lang.Runtime.addShutdownHook(hook)
Registers a new virtual-machine shutdown hook.
|
| <static> |
jls.lang.Runtime.exec(cmdArray, envp, dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.
|
| <static> |
jls.lang.Runtime.exit(status)
Terminates the program and returns a value to the OS.
|
| <static> |
jls.lang.Runtime.gc()
Runs the garbage collector.
|
| <static> |
jls.lang.Runtime.getRuntime()
Gets the current runtime instance.
|
| <static> |
jls.lang.Runtime.halt(status)
Forcibly terminates the program and returns a value to the OS.
|
| <static> |
jls.lang.Runtime.loadLibrary(name)
Loads a native library compliant with the JLS native engine.
|