
Set environment variable JAVA_HOME if you install JDK5.0 or set environment variable JRE_HOME if you install JRE5.0.
In Windows system, type in command line:
“%JAVA_HOME%\jre\bin\java –version”
or
“%JRE_HOME%\bin\java -version”
You should see the version of JDK/JRE you install, as shown below: