Get the system properties from RuntimeMXBean in Java
Description
The following code shows how to get the system properties from RuntimeMXBean.
Example
/*from w w w . j av a 2 s. co m*/
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
public class Main {
public static void main(String args[]) throws Exception {
RuntimeMXBean mx = ManagementFactory.getRuntimeMXBean();
System.out.println(mx.getSystemProperties());
}
}
The code above generates the following result.