public class JVM
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static boolean |
isJDK1_6_U10
The is jd k1_6_ u10.
|
static boolean |
isJDK1_6_U11
The is jd k1_6_ u11.
|
static int |
JDK1_0
The Constant JDK1_0.
|
static int |
JDK1_1
The Constant JDK1_1.
|
static int |
JDK1_2
The Constant JDK1_2.
|
static int |
JDK1_3
The Constant JDK1_3.
|
static int |
JDK1_4
The Constant JDK1_4.
|
static int |
JDK1_5
The Constant JDK1_5.
|
static int |
JDK1_6
The Constant JDK1_6.
|
static int |
JDK1_6_U10_AND_AFTER
The Constant JDK1_6_U10_AND_AFTER.
|
static int |
JDK1_7
The Constant JDK1_7.
|
static int |
JDK1_8
The Constant JDK1_8.
|
static int |
JDK1_9
The Constant JDK1_9.
|
构造器和说明 |
---|
JVM()
Creates a new JVM data from the
java.version
System property |
JVM(java.lang.String p_JavaVersion)
Constructor for the OS object.
|
限定符和类型 | 方法和说明 |
---|---|
static JVM |
current()
Current.
|
boolean |
isOneDotEight()
Checks if is one dot eight.
|
boolean |
isOneDotFive()
Checks if is one dot five.
|
boolean |
isOneDotFour()
Checks if is one dot four.
|
boolean |
isOneDotNine()
Checks if is one dot nine.
|
boolean |
isOneDotOne()
Checks if is one dot one.
|
boolean |
isOneDotSeven()
Checks if is one dot seven.
|
boolean |
isOneDotSix()
Checks if is one dot six.
|
boolean |
isOneDotSixUpdate12OrAfter()
Determines if the version of JDK1_6 has Nimbus Look and Feel installed.
|
boolean |
isOneDotThree()
Checks if is one dot three.
|
boolean |
isOneDotTwo()
Checks if is one dot two.
|
boolean |
isOrLater(int p_Version)
Checks if is or later.
|
public static final int JDK1_0
public static final int JDK1_1
public static final int JDK1_2
public static final int JDK1_3
public static final int JDK1_4
public static final int JDK1_5
public static final int JDK1_6
public static final int JDK1_6_U10_AND_AFTER
public static boolean isJDK1_6_U10
public static boolean isJDK1_6_U11
public static final int JDK1_7
public static final int JDK1_8
public static final int JDK1_9
public JVM()
java.version
System propertypublic JVM(java.lang.String p_JavaVersion)
p_JavaVersion
- the p_ java versionpublic static JVM current()
public boolean isOrLater(int p_Version)
p_Version
- the p_ versionpublic boolean isOneDotOne()
public boolean isOneDotTwo()
public boolean isOneDotThree()
public boolean isOneDotFour()
public boolean isOneDotFive()
public boolean isOneDotSix()
public boolean isOneDotSixUpdate12OrAfter()
另一个需要注意地方:窗口透明在u10版本上存在一个BUG:6750920,所以u10版本在BE LNF将不作为支持窗口透明特性
true
if Nimbus is available and the version is 1.6;
false
otherwisepublic boolean isOneDotSeven()
public boolean isOneDotEight()
public boolean isOneDotNine()