RuntimeMXBean: getBootClassPath() : RuntimeMXBean « java.lang.management « Java by API






RuntimeMXBean: getBootClassPath()

  
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());
    System.out.println(mx.getClassPath());

    System.out.println(mx.getInputArguments());
    System.out.println(mx.getSystemProperties());

    System.out.println(new Date(mx.getStartTime()));
    System.out.println(mx.getUptime() + " ms");

  }
}

   
    
  








Related examples in the same category

1.RuntimeMXBean: getClassPath()
2.RuntimeMXBean: getInputArguments()
3.RuntimeMXBean: getStartTime()
4.RuntimeMXBean: getSystemProperties()
5.RuntimeMXBean: getUptime()