Java java.lang Runtime fields, constructors, methods, implement or subclass

Example usage for Java java.lang Runtime fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang Runtime.

The text is from its open source code.

Implementation

java.lang.Runtime has the following implementations.
Click this link to see all its implementation.

Field

Versionversion

Method

voidaddShutdownHook(Thread hook)
Registers a new virtual-machine shutdown hook.
intavailableProcessors()
Returns the number of processors available to the Java virtual machine.
Processexec(String command)
Executes the specified string command in a separate process.
Processexec(String cmdarray[])
Executes the specified command and arguments in a separate process.
Processexec(String command, String[] envp)
Executes the specified string command in a separate process with the specified environment.
Processexec(String[] cmdarray, String[] envp)
Executes the specified command and arguments in a separate process with the specified environment.
Processexec(String command, String[] envp, File dir)
Executes the specified string command in a separate process with the specified environment and working directory.
Processexec(String[] cmdarray, String[] envp, File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.
voidexit(int status)
Terminates the currently running Java virtual machine by initiating its shutdown sequence.
longfreeMemory()
Returns the amount of free memory in the Java Virtual Machine.
voidgc()
Runs the garbage collector in the Java Virtual Machine.
RuntimegetRuntime()
Returns the runtime object associated with the current Java application.
voidhalt(int status)
Forcibly terminates the currently running Java virtual machine.
voidload(String filename)
Loads the native library specified by the filename argument.
voidloadLibrary(String libname)
Loads the native library specified by the libname argument.
longmaxMemory()
Returns the maximum amount of memory that the Java virtual machine will attempt to use.
booleanremoveShutdownHook(Thread hook)
De-registers a previously-registered virtual-machine shutdown hook.
voidrunFinalization()
Runs the finalization methods of any objects pending finalization.
longtotalMemory()
Returns the total amount of memory in the Java virtual machine.