com.liferay.portal.kernel.util
Class JavaDetector

java.lang.Object
  extended by com.liferay.portal.kernel.util.JavaDetector
Direct Known Subclasses:
JavaProps

public class JavaDetector
extends java.lang.Object

Author:
Brian Wing Shun Chan

Field Summary
static double JAVA_CLASS_VERSION_JDK_4
           
static double JAVA_CLASS_VERSION_JDK_5
           
static double JAVA_CLASS_VERSION_JDK_6
           
static double JAVA_CLASS_VERSION_JDK_7
           
 
Constructor Summary
protected JavaDetector()
           
 
Method Summary
static java.lang.String getJavaClassPath()
           
static double getJavaClassVersion()
           
static java.lang.String getJavaRuntimeName()
           
static java.lang.String getJavaRuntimeVersion()
           
static double getJavaSpecificationVersion()
           
static java.lang.String getJavaVendor()
           
static java.lang.String getJavaVersion()
           
static java.lang.String getJavaVmVersion()
           
static boolean is64bit()
           
static boolean isIBM()
           
static boolean isJDK4()
           
static boolean isJDK5()
           
static boolean isJDK6()
           
static boolean isJDK7()
           
static boolean isOpenJDK()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_CLASS_VERSION_JDK_4

public static final double JAVA_CLASS_VERSION_JDK_4
See Also:
Constant Field Values

JAVA_CLASS_VERSION_JDK_5

public static final double JAVA_CLASS_VERSION_JDK_5
See Also:
Constant Field Values

JAVA_CLASS_VERSION_JDK_6

public static final double JAVA_CLASS_VERSION_JDK_6
See Also:
Constant Field Values

JAVA_CLASS_VERSION_JDK_7

public static final double JAVA_CLASS_VERSION_JDK_7
See Also:
Constant Field Values
Constructor Detail

JavaDetector

protected JavaDetector()
Method Detail

getJavaClassPath

public static java.lang.String getJavaClassPath()

getJavaClassVersion

public static double getJavaClassVersion()

getJavaRuntimeName

public static java.lang.String getJavaRuntimeName()

getJavaRuntimeVersion

public static java.lang.String getJavaRuntimeVersion()

getJavaSpecificationVersion

public static double getJavaSpecificationVersion()

getJavaVendor

public static java.lang.String getJavaVendor()

getJavaVersion

public static java.lang.String getJavaVersion()

getJavaVmVersion

public static java.lang.String getJavaVmVersion()

is64bit

public static boolean is64bit()

isIBM

public static boolean isIBM()

isJDK4

public static boolean isJDK4()

isJDK5

public static boolean isJDK5()

isJDK6

public static boolean isJDK6()

isJDK7

public static boolean isJDK7()

isOpenJDK

public static boolean isOpenJDK()