| Modifier and Type | Field and Description |
|---|---|
| public static final int | ANDROID_VERSION
Android version. |
| public static final String | DALVIK
JVM_NAME prefix for Dalvik/Android |
| public static final String | GAE_VERSION
Google App Engine version or null is we are not on GAE |
| public static final String | GNU
JVM_NAME prefix for GCJ |
| public static final String | HOTSPOT
JVM_NAME prefix for Java HotSpot |
| public static final boolean | IS_ANDROID_OPENJDK
Flag telling if this version of Android is based on the OpenJDK |
| public static final String | JVM_NAME
JVM name |
| public static final String | OPENJDK
JVM_NAME prefix for the OpenJDK |
| public static final String | PERC
JVM_NAME prefix for Aonix PERC |
| public static final String | SPECIFICATION_VERSION
Java specification version |
| public static final String | SUN
JVM_NAME prefix for Java HotSpot |
| public static final String | VENDOR
VM vendor name |
| public static final String | VENDOR_VERSION
VM vendor version |
| public static final String | VM_INFO
JVM version |
| public static final String | VM_VERSION
JVM version |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| private static int | |
| private static int | |
| private static String | |
| private static boolean | |
| private static int | |
| public static boolean | Returns: if the current JVM is Java 11 or aboveTells if the current JVM is running Java 11 or above |
| public static boolean | Returns: if the current JVM is Java 9 or aboveTells if the current JVM is running Java 9 or above |
| public static boolean | Returns: if it's an Android version based on the OpenJDK. Will return false if this JVM isn't an Android JVM at allCheck if this JVM is an Android JVM based on OpenJDK. |
| public static boolean | |
| public static boolean |
| ANDROID_VERSION | back to summary |
|---|---|
| public static final int ANDROID_VERSION Android version. Will be 0 for none android platform | |
| DALVIK | back to summary |
|---|---|
| public static final String DALVIK JVM_NAME prefix for Dalvik/Android | |
| GAE_VERSION | back to summary |
|---|---|
| public static final String GAE_VERSION Google App Engine version or null is we are not on GAE | |
| GNU | back to summary |
|---|---|
| public static final String GNU JVM_NAME prefix for GCJ | |
| HOTSPOT | back to summary |
|---|---|
| public static final String HOTSPOT JVM_NAME prefix for Java HotSpot | |
| IS_ANDROID_OPENJDK | back to summary |
|---|---|
| public static final boolean IS_ANDROID_OPENJDK Flag telling if this version of Android is based on the OpenJDK | |
| JVM_NAME | back to summary |
|---|---|
| public static final String JVM_NAME JVM name | |
| OPENJDK | back to summary |
|---|---|
| public static final String OPENJDK JVM_NAME prefix for the OpenJDK | |
| PERC | back to summary |
|---|---|
| public static final String PERC JVM_NAME prefix for Aonix PERC | |
| SPECIFICATION_VERSION | back to summary |
|---|---|
| public static final String SPECIFICATION_VERSION Java specification version | |
| SUN | back to summary |
|---|---|
| public static final String SUN
Deprecated Use JVM_NAME prefix for Java HotSpot | |
| VENDOR | back to summary |
|---|---|
| public static final String VENDOR VM vendor name | |
| VENDOR_VERSION | back to summary |
|---|---|
| public static final String VENDOR_VERSION VM vendor version | |
| VM_INFO | back to summary |
|---|---|
| public static final String VM_INFO JVM version | |
| VM_VERSION | back to summary |
|---|---|
| public static final String VM_VERSION JVM version | |
| PlatformDescription | back to summary |
|---|---|
| private PlatformDescription() | |
| describePlatform | back to summary |
|---|---|
| public static String describePlatform() Describes the platform. Outputs Java version and vendor.
| |
| getAndroidVersion | back to summary |
|---|---|
| private static int getAndroidVersion() | |
| getAndroidVersion0 | back to summary |
|---|---|
| private static int getAndroidVersion0() | |
| getGaeRuntimeVersion | back to summary |
|---|---|
| private static String getGaeRuntimeVersion() | |
| getIsAndroidOpenJDK | back to summary |
|---|---|
| private static boolean getIsAndroidOpenJDK() | |
| getOldAndroidVersion | back to summary |
|---|---|
| private static int getOldAndroidVersion(Class<?> versionClass) | |
| isAfterJava11 | back to summary |
|---|---|
| public static boolean isAfterJava11() Tells if the current JVM is running Java 11 or above
| |
| isAfterJigsaw | back to summary |
|---|---|
| public static boolean isAfterJigsaw() Tells if the current JVM is running Java 9 or above
| |
| isAndroidOpenJDK | back to summary |
|---|---|
| public static boolean isAndroidOpenJDK() Check if this JVM is an Android JVM based on OpenJDK.
| |
| isGoogleAppEngine | back to summary |
|---|---|
| public static boolean isGoogleAppEngine() | |
| isThisJVM | back to summary |
|---|---|
| public static boolean isThisJVM(String name) Check if the current JVM is of the type passed in parameter. Normally, this will be a constant
from this class. We basically do
| |