| Modifier and Type | Field and Description |
|---|---|
| private static final Set | JRE_LIB_OR_EXT_JARS
The paths of any "lib/" or "ext/" jars found in the JRE. |
| private static final String | RT_JAR
The path of the first "rt.jar" found. |
| private static final Set | RT_JARS
The paths of any "rt.jar" files found in the JRE. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: true if the directory was readable.the JRE directory dir)Add and search a JRE path. |
| public static Set | Returns: The paths for any jarfiles found in JRE/JDK "lib/" or "ext/" directories.Get the JRE "lib/" and "ext/" jar paths. |
| public static String | Returns: The path of rt.jar (in JDK 7 or 8), or null if it wasn't found (e.g. in JDK 9+).Get the JRE "rt.jar" path. |
| JRE_LIB_OR_EXT_JARS | back to summary |
|---|---|
| private static final Set<String> JRE_LIB_OR_EXT_JARS The paths of any "lib/" or "ext/" jars found in the JRE. | |
| RT_JAR | back to summary |
|---|---|
| private static final String RT_JAR The path of the first "rt.jar" found. | |
| RT_JARS | back to summary |
|---|---|
| private static final Set<String> RT_JARS The paths of any "rt.jar" files found in the JRE. | |
| SystemJarFinder | back to summary |
|---|---|
| private SystemJarFinder() Constructor. | |
| addJREPath | back to summary |
|---|---|
| private static boolean addJREPath(final File dir) Add and search a JRE path.
| |
| getJreLibOrExtJars | back to summary |
|---|---|
| public static Set Get the JRE "lib/" and "ext/" jar paths. | |
| getJreRtJarPath | back to summary |
|---|---|
| public static String getJreRtJarPath() Get the JRE "rt.jar" path.
| |