Menu Search

Chapter 13. Miscellaneous

13.1. JVM Installation verification

13.1.1. Verify JVM on Windows

Firstly confirm that the JAVA_HOME environment variable is set correctly by typing the following at the command prompt:

echo %JAVA_HOME%

If JAVA_HOME is set you will see something similar to the following:

c:"\PROGRA~1"\Java\jdk1.6.0_24\
      

Then confirm that a Java installation (1.6 or higher) is available:

java -version

If java is available on the path, output similar to the following will be seen:

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

13.1.2. Verify JVM on Windows

Firstly confirm that the JAVA_HOME environment variable is set correctly by typing the following at the command prompt:

echo $JAVA_HOME

If JAVA_HOME is set you will see something similar to the following:

/usr/java/jdk1.6.0_35
      

Then confirm that a Java installation (1.6 or higher) is available:

java -version

If java is available on the path, output similar to the following will be seen:

java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)