public class JREFinder
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
JREFinder.JavaFilter |
JavaFilter class identifies acceptable java executable files.
|
| Modifier and Type | Field | Description |
|---|---|---|
static JREFinder.JavaFilter |
JAVA_FILTER |
| Modifier and Type | Method | Description |
|---|---|---|
java.io.File |
getDefaultJRE(int vmBitness,
java.lang.String path,
boolean searchAll) |
Finds the default JRE of a given bitness (32 or 64).
|
static JREFinder |
getFinder() |
Gets the singleton JREFinder.
|
java.util.TreeSet<java.io.File> |
getJREs(int vmBitness) |
Returns all public and private JREs of a given bitness (32 or 64).
|
boolean |
is32BitVM(java.lang.String jrePath) |
Determines if a JRE path points to a 32-bit VM.
|
static boolean |
isReady() |
public static final JREFinder.JavaFilter JAVA_FILTER
public static JREFinder getFinder()
public static boolean isReady()
public boolean is32BitVM(java.lang.String jrePath)
jrePath - the JRE pathpublic java.util.TreeSet<java.io.File> getJREs(int vmBitness)
vmBitness - the bitness desiredpublic java.io.File getDefaultJRE(int vmBitness,
java.lang.String path,
boolean searchAll)
vmBitness - the bitness desiredpath - the first path to search for a JRE--if found, return as defaultsearchAll - true to search paths other than the specified one