Class SystemJarFinder

java.lang.Object
nonapi.io.github.classgraph.classpath.SystemJarFinder

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

    • getJreRtJarPath

      public static String getJreRtJarPath()
      Get the JRE "rt.jar" path.
      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()
      Get the JRE "lib/" and "ext/" jar paths.
      Returns:
      The paths for any jarfiles found in JRE/JDK "lib/" or "ext/" directories.