Table of Contents

About

Most of the OS informations are managed in the System class.

Every Java application has a single instance of class Runtime that allows the application to interface with the environment in which the application is running. The current runtime can be obtained from the getRuntime method.

Characteristics

Memory

See JVM - Memory (The Heap)

Variable

  • All
Map<String, String> env = System.getenv();
for (String envName : env.keySet()) {
	System.out.format("%s=%s%n", envName, env.get(envName));
}
  • One
String myEnv = System.getenv("myEnvname");