java - Different Tomcat Instances on Windows -


i have apache tomcat 7 running on windows 7 professional laptop working java 6 jdk etc , works project setup for. have requirement have tomcat 8 running java 8 jdk. have windows environment variables set follows;

catalina_home c:\apache\tomcat classpath java_home\lib java_home c:\java\jdk6_30u jre_home  c:\java\jre6_30u 

i have downloaded java 8 , installed jdk , jre fine in c:\java\java8 , left java environment variables alone. @ command prompt says java version 1.8.0.7 project running java 6 still works fine. have extracted tomcat 8 c:\apache\tomcat8 , know can't have conflicting port numbers how set tomcat 8 use java 8 jdk , not conflict catalina_home environment variable?

i have googled there conflicting feedback saying set setenv.bat file , saying amend catalina.bat file or startup.bat file. how set environment variables use appropriate ones different tomcat instances?

create new file startup-with-java8.bat in tomcat's bin folder:

@echo off set catalina_home=c:\apache\tomcat8 set java_home=c:\java\java8 set jre_home=c:\java\java8 call %~dp0\startup.bat %*  

and use new script start tomcat.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -