java.lang.Object | |
↳ | sun.misc.Version |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the build number of the running JDK if it's a RE build
It will return 0 if it's an internal build.
| |||||||||||
Returns the major version of the running JDK.
| |||||||||||
Returns the micro version of the running JDK.
| |||||||||||
Returns the minor version of the running JDK.
| |||||||||||
Returns the update release version of the running JDK if it's
a RE build.
| |||||||||||
Returns the build number of the running JVM if it's a RE build
It will return 0 if it's an internal build.
| |||||||||||
Returns the major version of the running JVM if it's 1.6 or newer
or any RE VM build.
| |||||||||||
Returns the micro version of the running JVM if it's 1.6 or newer
or any RE VM build.
| |||||||||||
Returns the minor version of the running JVM if it's 1.6 or newer
or any RE VM build.
| |||||||||||
Returns the update release version of the running JVM if it's
a RE build.
| |||||||||||
Give a stream, it will print version info on it.
| |||||||||||
In case you were wondering this method is called by java -version.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns the build number of the running JDK if it's a RE build It will return 0 if it's an internal build.
Returns the major version of the running JDK.
Returns the micro version of the running JDK.
Returns the minor version of the running JDK.
Returns the update release version of the running JDK if it's a RE build. It will return 0 if it's an internal build.
Returns the build number of the running JVM if it's a RE build It will return 0 if it's an internal build.
Returns the major version of the running JVM if it's 1.6 or newer or any RE VM build. It will return 0 if it's an internal 1.5 or 1.4.x build.
Returns the micro version of the running JVM if it's 1.6 or newer or any RE VM build. It will return 0 if it's an internal 1.5 or 1.4.x build.
Returns the minor version of the running JVM if it's 1.6 or newer or any RE VM build. It will return 0 if it's an internal 1.5 or 1.4.x build.
Returns the update release version of the running JVM if it's a RE build. It will return 0 if it's an internal build.
In case you were wondering this method is called by java -version. Sad that it prints to stderr; would be nicer if default printed on stdout.