Package com.sun.enterprise.util
Class JDK
java.lang.Object
com.sun.enterprise.util.JDK
A simple class that fills a hole in the JDK. It parses out the version numbers
of the JDK we are running.
Example:
1.6.0_u14 == major = 1 minor = 6, subminor = 0, update = 14
- Author:
- bnevins
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetMajor()static intgetMinor()static intstatic intstatic JDKgetVersion(String string) booleannewerOrEquals(JDK version) booleanstatic booleanok()See if the current JDK is legal for running GlassFishbooleanolderOrEquals(JDK version) booleanstatic StringNo instances are allowed so it is pointless to override toString
-
Method Details
-
getVersion
-
ok
public static boolean ok()See if the current JDK is legal for running GlassFish- Returns:
- true if the JDK is >= 1.6.0
-
getMajor
public static int getMajor() -
getMinor
public static int getMinor() -
getSubMinor
public static int getSubMinor() -
getUpdate
public static int getUpdate() -
newerThan
-
newerOrEquals
-
olderThan
-
olderOrEquals
-
toStringStatic
No instances are allowed so it is pointless to override toString- Returns:
- Parsed version numbers
-