What Java Version are you running?

You are running java application and it throws error while invoking it. You can find whether java is configured or not and which version of java you are running.

1. Open command prompt (cmd), and run this command –

java -version

It will show java version as below. In this example java 1.6 is installed.

C:\Users\Administrator>java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit VM (build 20.45-b01, mixed mode)

 

2. Another way is to go to java.com and verify the java.

 

3. Type cmd /k java -version on address bar of windows explorer. Hit enter and it will show the java version in command prompt.

 

Note – If “java -version” throws error then check PATH environment parameter and add “C:\Program Files\Java\jdk1.6.0_27\bin” to it.