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?
You answered your own question.! 🙂
All You need to do is link java 7 in your
JAVA_HOME.!More Info Here
Edit : (Based on alfabravo‘s comment :
You can definitely change the pointer to
JAVA_HOMEin your catalina.bat/sh