How to set JAVA_HOME for multiple Tomcat instances?

前端 未结 11 1071
情话喂你
情话喂你 2020-12-14 06:29

I have 2 Java Web Projects. One runs on JDK 1.5 and the other runs on JDK 1.6. I want to run both of them on the same computer, but the JAVA_HOME environment variable can on

11条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 06:57

    I think this is a best practice (You may be have many Tomcat instance in same computer, you want per Tomcat instance use other Java Runtime Environment):

    This is manual inside file: catalina.sh

    #   JRE_HOME        Must point at your Java Runtime installation.
    #                   Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME
    #                   are both set, JRE_HOME is used.
    

提交回复
热议问题