I have the Java JDK 1.7.0_21 installed on my Debian machine (along with others). I have configured Debain to use this JDK:
pi@raspberrypi ~ $ java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode)
From reading the notes in Tomcat catalina.sh, I understand that the Tomcat server should use the JAVA_HOME
/JRE_HOME
system variables
# JAVA_HOME Must point at your Java Development Kit installation.
# Required to run the with the "debug" argument.
#
# JRE_HOME Must point at your Java Development Kit installation.
# Defaults to JAVA_HOME if empty.
I have set those to the proper directory. Echoing the variables gives the following output:
pi@raspberrypi ~ $ echo $JAVA_HOME
/opt/Oracle_Java/jdk1.7.0_21/bin
pi@raspberrypi ~ $ echo $JRE_HOME
/opt/Oracle_Java/jdk1.7.0_21/jre
The Tomcat Web Application Manager however still shows 1.6.0_27-b27 as the JVM in use.
Do you have any advice on how to make Tomcat run with the 1.7.0_21 JDK?