Verifying Java

To verify that you have the correct version of Java, type Java -version.

This displays a result similar to the following, depending on the version of Java that you have installed:

C:\>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)