当前页面: 开发资料首页 → J2SE 专题 → J2SE SDK/JRE 版本号命名规则
摘要: J2SE SDK/JRE 版本号命名规则
Developers may need to know a product's version string for various purposes, depending on whether they are developing and deploying a product or downloading and integrating a product.
The following table explains how to interpret SDK/JRE release version string information.
Note that this convention was not in effect prior to the 1.3.0 feature release. The output of java -version has had the same format since 1.3.1
The output of the java -version command includes a product version identifier and a build indentifier. This output is determined by the values of several system properties, and those system properties can themselves be examined programmatically at runtime.
<table width="100%" cellspacing="1" cellpadding="5" border="1" summary="SDK/JRE System Properties for Product Version and Build Number"> <thead> <tr> <th>System Property Name</th> <th>System Property Content</th> <th>Where Displayed in java -version Output</th> </tr> <tr> <td> java.version </td> <td>Every SDK/JRE release that is shipped has a product version string and a build identifier associated with it. The general rules for setting either a version string or a build number string are as follows. For more specific rules and examples, see the following table:
The identifier is often used to represent a particular milestone, for example:
java version "1.3.0"</td> </tr> <tr align="left"> <td valign="top"> Maintenance </td> <td valign="top"> Contains engineering focused bug fixes. </td> <td valign="top"> n.n.n<-identifier>
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-b24)
Java HotSpot(TM) Client VM (build 1.3.0-b24, mixed mode)
java version "1.3.1-beta"</td> </tr> <tr align="left"> <td valign="top"> Update </td> <td valign="top"> Contains customer focused bug fixes. </td> <td valign="top"> n.n.n_nn<-identifier>
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b09)
Java HotSpot(TM) Client VM (build 1.3.1_05-ea-b01, mixed mode)
java version "1.3.1_05-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_05-ea-b01)
Java HotSpot(TM) Client VM (build 1.3.1_05-ea-b01, mixed mode)
The output indicates a GA (FCS) update release having a build identifier of b02.
java version "1.3.1_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_05-b02)
Java HotSpot(TM) Client VM (build 1.3.1_05-b02, mixed mode)
The output indicates an early access, update release having a build identifier of b01.
java version "1.4.0_03-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-ea-b01)
Java HotSpot(TM) Client VM (build 1.4.0_03-ea-b01, mixed mode)
The output indicates a GA (FCS) update release having a build identifier of b04.
java version "1.4.0_03"</td> </tr> </table>
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04)
Java HotSpot(TM) Client VM (build 1.4.0_03-b04, mixed mode)
↑返回目录
前一篇: J2se 1.5 Beta2 开始更名为 J2se 5.0 Beta2
后一篇: Sun announced today the Beta 2 release of the J2SE 5.0 software development kit (JDK)