What should I get when I run Java -version?

Zing follows the naming conventions specified in the article "System Properties and the java -version Command," from which this article borrows terminology.

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.

The output reflects the settings of two system properties as follows:
java.version. Line one displays the product version.
java.runtime.version. Line one displays the product version. Line two displays the build identifier.

 

Example: Zing output from java -version

java version "1.8.0-zing_16.07.0.0"
Zing Runtime Environment for Java Applications (build 1.8.0-zing_16.07.0.0-b4)
Zing 64-Bit Tiered VM (build 1.8.0-zing_16.07.0.0-b17-product-azlinuxM-X86_64, mixed mode)


The parts of the version number "1.8.0-zing_16.07.0.0" consist of the Java SE major level, the name zing, and the Azul version number, in major.minor.maintenance.patch notation.

Add Comment

Comments

1 comment
  • You will get the full version of the java executable which you are running on the system.

    0

Please sign in to leave a comment.

Was this article helpful?
0 out of 0 found this helpful