|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.utils.Version com.gridsystems.utils.JavaVersion
public class JavaVersion
Class used to store and manage the versions of the JRE.
Constructor Summary | |
---|---|
JavaVersion(java.lang.String javaVersion)
Constructor. |
Method Summary | |
---|---|
static boolean |
checkJavaHome()
Convenience method for verifying JAVA_HOME environment variable. |
static boolean |
checkJavaVersion(java.lang.String versionPrefix)
Convenience method for verifying Java runtime version. |
static JavaVersion |
getCurrentVersion()
Gets the JavaVersion object associated with the current version of JRE. |
static java.lang.String |
getJavaHome()
Gets the the value that the JAVA_HOME variable must have. |
static boolean |
isJdkRunning()
Checks if the value from getJavaHome() points to a JRE or JDK. |
Methods inherited from class com.gridsystems.utils.Version |
---|
compareTo, equals, getDoubleRepresentation, getMajorVersion, getMinorVersion, getRelease, getSize, getStringRepresentation, getStringRepresentation, getValue, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaVersion(java.lang.String javaVersion)
javaVersion
- the String from which the java information is obtained.
It is interpreted as an arbitrarily long series of integers separated by
non-digit characters.Method Detail |
---|
public static JavaVersion getCurrentVersion()
public static boolean checkJavaHome()
public static boolean checkJavaVersion(java.lang.String versionPrefix)
versionPrefix
- prefix for java version e.g. "1.3", "1.4", "1.4.2", etc.
public static java.lang.String getJavaHome()
public static boolean isJdkRunning()
getJavaHome()
points to a JDK instead of a JRE.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |