public final class Version
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
JAVA_14_API_AVAILABLE
Indicates if J2SE 1.4 or better is in use; should always be
true since as of Toolkit version 7.2, J2SE 1.4 or later is
required. |
static boolean |
JAVA_15_API_AVAILABLE
Indicates if J2SE 5 (1.5) or better is in use; should always be
true since as of Toolkit version 7.2 SP2, J2SE 5 or later is
required. |
static boolean |
JAVA_17_API_AVAILABLE
Indicates if J2SE 7 (1.7) or better is in use; unlike the previous values
this value may be false.
|
static java.lang.String |
JAVA_ENV_INFO
Contains information about the Java runtime environment being used.
|
static java.lang.String |
PRODUCT_NAME
Contains the product name of the Toolkit.
|
static java.lang.String |
PRODUCT_VERSION
Contains the product version of the Toolkit.
|
static java.lang.String |
VERSION
A string that identifies the product and version of the Toolkit; consists
of the product name and product version.
|
static double |
VERSION_NUMBER
Indicates the version of the Toolkit in double format.
|
| Constructor and Description |
|---|
Version() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getInfo()
Returns information about the Toolkit and the operating environment.
|
static java.lang.String |
getJavaRuntimeInfo()
Returns information about the Java runtime environment.
|
static java.lang.String |
getJavaVirtualMachineInfo()
Returns information about the Java virtual machine.
|
static java.lang.String |
getOperatingSystemInfo()
Returns information about the operating system.
|
static java.lang.String |
getToolkitInfo()
Returns information about the Toolkit.
|
static void |
main(java.lang.String[] args)
An application that displays information about the Toolkit and the
operating environment.
|
public static final double VERSION_NUMBER
public static final java.lang.String VERSION
public static final java.lang.String PRODUCT_NAME
public static final java.lang.String PRODUCT_VERSION
public static final boolean JAVA_14_API_AVAILABLE
true since as of Toolkit version 7.2, J2SE 1.4 or later is
required.public static final boolean JAVA_15_API_AVAILABLE
true since as of Toolkit version 7.2 SP2, J2SE 5 or later is
required.public static final boolean JAVA_17_API_AVAILABLE
public static final java.lang.String JAVA_ENV_INFO
getJavaRuntimeInfo()public static java.lang.String getToolkitInfo()
The string returned is composed of the following values:
public static java.lang.String getJavaRuntimeInfo()
Information about the Java runtime environment is extracted from the Java system properties in place when this class was loaded. The string returned is composed of the following Java system property values:
public static java.lang.String getJavaVirtualMachineInfo()
Information about the Java virtual machine is extracted from the Java system properties in place when this class was loaded. The string returned is composed of the following Java system property values:
public static java.lang.String getOperatingSystemInfo()
Information about the operating system is extracted from the Java system properties in place when this class was loaded. The string returned is composed of the following Java system property values:
public static java.lang.String getInfo()
The string returned is composed of the following information:
VERSIONgetJavaRuntimeInfo()getJavaVirtualMachineInfo()getOperatingSystemInfo()public static void main(java.lang.String[] args)
args - ignoredgetInfo()