The Runtime object allows a Java program to communicate with the environment in which it is running. Concretely, it allows you to execute external applications, get the amount of total and free memory or load a dynamic library containing native code. You can't create a Runtime Object. Get a reference to a Runtime Object by executing the static method getRuntime() on it.