f3e5c8aa556d1bb85af23e8f94033fc258dc40e5Dominik Luecke * Determine your JDK
bcf8ca32c035d9618b44a2cceca097599305a788Dominik Lueckeimport java.lang.management.ManagementFactory;
d257603abae3b07d74a5e97f67477a6ff1431181Dominik Lueckeimport java.lang.management.OperatingSystemMXBean;
f3e5c8aa556d1bb85af23e8f94033fc258dc40e5Dominik Luecke * @author luecke
f3e5c8aa556d1bb85af23e8f94033fc258dc40e5Dominik Luecke * @param None
bcf8ca32c035d9618b44a2cceca097599305a788Dominik Luecke RuntimeMXBean mxBean = ManagementFactory.getRuntimeMXBean();
d257603abae3b07d74a5e97f67477a6ff1431181Dominik Luecke OperatingSystemMXBean mxOS = ManagementFactory.getOperatingSystemMXBean();
bcf8ca32c035d9618b44a2cceca097599305a788Dominik Luecke Map<String, String> p = mxBean.getSystemProperties();
d257603abae3b07d74a5e97f67477a6ff1431181Dominik Luecke System.out.println("Vendor: " + mxBean.getVmVendor());
d257603abae3b07d74a5e97f67477a6ff1431181Dominik Luecke System.out.println("VM Name: " + mxBean.getVmName() + " " +
d257603abae3b07d74a5e97f67477a6ff1431181Dominik Luecke System.out.println("Runtime: " + p.get("java.runtime.name") + " " +
d257603abae3b07d74a5e97f67477a6ff1431181Dominik Luecke System.out.println("OS: " + mxOS.getName() + " " + mxOS.getArch()
d257603abae3b07d74a5e97f67477a6ff1431181Dominik Luecke System.out.println("Processors: " + mxOS.getAvailableProcessors());