List of usage examples for java.lang.management RuntimeMXBean isBootClassPathSupported
public boolean isBootClassPathSupported();
From source file:org.pepstock.jem.util.ReverseURLClassLoader.java
/** * Loads all JARS of the bootstrap classpath. If JRE/jDK doesn't support bootstrap, could create * issues. Uses java.management to get these information *//* ww w . j a va 2 s. c o m*/ private void loadBootstrapFiles() { // RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean(); // checks if bootstrap classpath is supporte if (runtime.isBootClassPathSupported()) { // gets all files String longFiles = ManagementFactory.getRuntimeMXBean().getBootClassPath(); // splits by path separator String[] files = StringUtils.split(longFiles, File.pathSeparator); // reads all JAR files for (int i = 0; i < files.length; i++) { try { JarFile jFile = new JarFile(files[i]); bootstrap.add(jFile); } catch (IOException e) { LogAppl.getInstance().ignore(e.getMessage(), e); } } } }