Class SystemJarFinder


  • public class SystemJarFinder
    extends Object
    A class to find rt.jar and any JRE "lib/" or "ext/" jars.
    • Constructor Detail

      • SystemJarFinder

        public SystemJarFinder()
    • Method Detail

      • getJreRtJarPath

        public static String getJreRtJarPath()
        Returns:
        The path of rt.jar (in JDK 7 or 8), or null if it wasn't found (e.g. in JDK 9+).
      • getJreLibOrExtJars

        public static Set<String> getJreLibOrExtJars()
        Returns:
        The paths for any jarfiles found in JRE/JDK "lib/" or "ext/" directories.