public final class PlatformDescription extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ANDROID_VERSION
Android version.
|
static String |
DALVIK
JVM_NAME prefix for Dalvik/Android
|
static String |
GAE_VERSION
Deprecated.
No need to differentiate GAE anymore since they have stopped using a security manager
|
static String |
GNU
JVM_NAME prefix for GCJ
|
static String |
HOTSPOT
JVM_NAME prefix for Java HotSpot
|
static boolean |
IS_ANDROID_OPENJDK
Flag telling if this version of Android is based on the OpenJDK
|
static String |
JVM_NAME
JVM name
|
static String |
OPENJDK
JVM_NAME prefix for the OpenJDK
|
static String |
PERC
JVM_NAME prefix for Aonix PERC
|
static String |
SPECIFICATION_VERSION
Java specification version
|
static String |
SUN
Deprecated.
Use
HOTSPOT instead |
static String |
VENDOR
VM vendor name
|
static String |
VENDOR_VERSION
VM vendor version
|
static String |
VM_INFO
JVM version
|
static String |
VM_VERSION
JVM version
|
Modifier and Type | Method and Description |
---|---|
static String |
describePlatform()
Describes the platform.
|
static boolean |
isAfterJava11()
Tells if the current JVM is running Java 11 or above
|
static boolean |
isAfterJigsaw()
Tells if the current JVM is running Java 9 or above
|
static boolean |
isAndroidOpenJDK()
Check if this JVM is an Android JVM based on OpenJDK.
|
static boolean |
isGoogleAppEngine()
Deprecated.
No need to differentiate GAE anymore since they have stopped using a security manager
|
static boolean |
isThisJVM(String name)
Check if the current JVM is of the type passed in parameter.
|
public static final String GNU
public static final String HOTSPOT
@Deprecated public static final String SUN
HOTSPOT
insteadpublic static final String OPENJDK
public static final String PERC
public static final String DALVIK
public static final String SPECIFICATION_VERSION
public static final String VM_VERSION
public static final String VM_INFO
public static final String VENDOR_VERSION
public static final String VENDOR
public static final String JVM_NAME
public static final int ANDROID_VERSION
public static final boolean IS_ANDROID_OPENJDK
@Deprecated public static final String GAE_VERSION
public static String describePlatform()
public static boolean isThisJVM(String name)
System.getProperty("java.vm.name").startWith(name)
.name
- jvm name we are looking forpublic static boolean isAndroidOpenJDK()
public static boolean isAfterJigsaw()
public static boolean isAfterJava11()
@Deprecated public static boolean isGoogleAppEngine()
Copyright © 2006–2024 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.