public final class JVM extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JVM.VersionException
Represents problems in determining JVM versions.
|
| Modifier and Type | Method and Description |
|---|---|
static JVM |
getInstance()
Get a JVM instance that represents the current JVM.
|
boolean |
haveRequisites(org.slf4j.Logger logger)
Check the JVM is the right version, has the right optional components
installed, and so on.
|
boolean |
isAtLeastVersion(int minimumMajor,
int minimumMinor)
Check whether the JVM is of given version or later.
|
String |
toString()
Return a description of the JVM.
|
public static JVM getInstance()
public boolean haveRequisites(org.slf4j.Logger logger)
throws JVM.VersionException
false.logger - Where to report any problems.true => we have everything.JVM.VersionException - If the JVM's version could not be parsed.public boolean isAtLeastVersion(int minimumMajor,
int minimumMinor)
throws JVM.VersionException
minimumMajor - Major version number.minimumMinor - Minor version number.true => the JVM is at least the requested version.JVM.VersionException - If the JVM's version could not be parsed.Copyright © 2000-2014. All Rights Reserved.