Get Boot path from RuntimeMXBean : RuntimeMXBean « Development Class « Java






Get Boot path from RuntimeMXBean


import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.util.Date;

public class Main {
  public static void main(String args[]) throws Exception {
    RuntimeMXBean mx = ManagementFactory.getRuntimeMXBean();
    System.out.println(mx.getBootClassPath());
  }
}

 








Related examples in the same category

1.Get the system properties from RuntimeMXBean
2.Get the JVM uptime from RuntimeMXBean
3.Get ClassPath from RuntimeMXBean
4.Get system start time from RuntimeMXBean
5.ManagementFactory.getRuntimeMXBean()
6.RuntimeMXBean.getBootClassPath()
7.RuntimeMXBean.getClassPath()
8.RuntimeMXBean.getInputArguments()
9.RuntimeMXBean.getSystemProperties()
10.RuntimeMXBean.getStartTime()
11.RuntimeMXBean.getUptime()