title: How to change Tomcats JVM version?
body: <p>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:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>From reading the notes in Tomcat catalina.sh, I understand that the Tomcat server should use the <code>JAVA_HOME</code>/<code>JRE_HOME</code> system variables</p>
  
  <pre><code>#   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.
  </code></pre>
  
  <p>I have set those to the proper directory. Echoing the variables gives the following output:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>The Tomcat Web Application Manager however still shows 1.6.0_27-b27 as the JVM in use.</p>
  
  <p>Do you have any advice on how to make Tomcat run with the 1.7.0_21 JDK?</p>