Class JRE


  • public class JRE
    extends Object
    • Constructor Detail

      • JRE

        public JRE()
    • Method Detail

      • majorVersion

        public static int majorVersion()
        Returns 8, 9, 10, etc.
      • getClasspath

        public static URL[] getClasspath​(ClassLoader classLoader)
                                  throws Exception
        Returns the classpath of either a URLClassLoader or a Java9+ AppClassLoader.
        Throws:
        Exception