How to check version of java running on your system



Problem Description

How to check version of java running on your system?

Solution

Following example demonstrates how to check version of java installed on your system using version argument with java command.

java -version

Result

The above code sample will produce the following result.

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
java_environment_setup.htm
Advertisements