How to check version of java running on your system?
Following example demonstrates how to check version of java installed on your system using version argument with java command.
java -version
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)
Advertisement