Search code examples
javatomcatjava-8tomcat6java-6

Run Web applications with different Java versions in Tomcat


I am using Tomcat 6 and in need to deploy 2 web apps , one of which will run in Java6 and the other in Java8 . Is it possible to achieve the same using a single Tomcat


Solution

  • No. Tomcat uses only one Java process. If you need to use different JREs, you have to use different Tomcat instances.