title: Different Tomcat Instances on Windows
body: <p>I currently have Apache Tomcat 7 running on my Windows 7 Professional laptop working with Java 6 JDK etc and all works well with a project it is setup for.  But I now have another requirement to ALSO have a Tomcat 8 running with Java 8 JDK.  I have Windows environment variables set up as follows;</p>
  
  <pre><code>CATALINA_HOME C:\Apache\tomcat
  CLASSPATH JAVA_HOME\lib
  JAVA_HOME C:\Java\jdk6_30U
  JRE_HOME  C:\Java\jre6_30U
  </code></pre>
  
  <p>I have downloaded Java 8 and installed the JDK and JRE fine in C:\Java\Java8 and left the Java environment variables alone.  At the command prompt it says the Java version is 1.8.0.7 but the project running Java 6 still works fine.  I have now extracted Tomcat 8 into C:\Apache\tomcat8 and I know I can't have conflicting port numbers but how do I set up Tomcat 8 to use java 8 JDK and NOT conflict with the CATALINA_HOME environment variable?</p>
  
  <p>I have googled this but there are conflicting feedback with some saying set up a setenv.bat file and some saying amend the catalina.bat file or even the startup.bat file.  How do I set the environment variables to use the appropriate ones with the different Tomcat instances?</p>