I have set the JAVA_HOME to C:\\Program Files\\Java\\jdk1.5.0_11 I have set the Classpath to C:\\Program Files\\Java\\jre1.5
JAVA_HOME
C:\\Program Files\\Java\\jdk1.5.0_11
Classpath
C:\\Program Files\\Java\\jre1.5
You can choose by altering catalina.bat/catalina.sh, your set up will use JAVA_HOME, unless you change setenv.bat.
just type java -version into your dos prompt to see your default java version, which programs will use unless you explicity tell them not to.
java -version