I have a web application in java 6 byte code and would like to test it in a Java 7 JVM environmment. For that purpose, I would like to configure Tomcat (for running the web application) to use Java 7. Now my question is how to do this?
Do I just set my JAVA_HOME environment variable to the path where Java 7 is installed, so that tomcat is run in the right JVM (Version 7)? Or is there another way to do this?