Java - (Environment|Operating System)

Java Conceptuel Diagram


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.



See JVM - Memory (The Heap)


  • 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");

Discover More
Java Conceptuel Diagram
Java - Application

An application in shipped in an archive format with a main class that contains a main method that starts the application. instancejava/lang/Runtimeclass RuntimeOperating System environment ...

Share this page:
Follow us:
Task Runner