com.sun.enterprise.util
Class JDK

java.lang.Object
  extended by com.sun.enterprise.util.JDK

public final class JDK
extends java.lang.Object

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
static int getMajor()
           
static int getMinor()
           
static int getSubMinor()
           
static int getUpdate()
           
static boolean ok()
          See if the current JDK is legal for running GlassFish
static java.lang.String toStringStatic()
          No instances are allowed so it is pointless to override toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()

toStringStatic

public static java.lang.String toStringStatic()
No instances are allowed so it is pointless to override toString

Returns:
Parsed version numbers


Copyright © 2012 GlassFish Community. All Rights Reserved.