public class MacInstalledJREs
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MacInstalledJREs.MacVMStandin
Custom stand-in that allows us to provide a version
|
| Constructor and Description |
|---|
MacInstalledJREs() |
| Modifier and Type | Method and Description |
|---|---|
static VMStandin[] |
getInstalledJREs(IProgressMonitor monitor)
Parses the XML output produced from "java_home -X" (see bug 325777), and return a collection
of descriptions of JRE installations.
|
static VMStandin[] |
parseJREInfo(java.io.InputStream stream,
IProgressMonitor monitor)
Parse
JREDescriptors from the given input stream. |
public static final VMStandin[] NO_VMS
public static VMStandin[] getInstalledJREs(IProgressMonitor monitor) throws CoreException
monitor - the IProgressMonitor or nullVMStandins installed in the OSCoreException - if unable to parse the output or the executable does not existpublic static VMStandin[] parseJREInfo(java.io.InputStream stream, IProgressMonitor monitor)
JREDescriptors from the given input stream. The stream is expected to be in the
XML properties format.monitor - the IProgressMonitor or nullstream - VMStandins or an empty array never null