How to set JAVA_HOME for multiple Tomcat instances?

前端 未结 11 1053
情话喂你
情话喂你 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条回答
  •  萌比男神i
    2020-12-14 06:56

    Linux based Tomcat6 should have /etc/tomcat6/tomcat6.conf

    # System-wide configuration file for tomcat6 services
    # This will be sourced by tomcat6 and any secondary service
    # Values will be overridden by service-specific configuration
    # files in /etc/sysconfig
    #
    # Use this one to change default values for all services
    # Change the service specific ones to affect only one service
    # (see, for instance, /etc/sysconfig/tomcat6)
    #
    
    # Where your java installation lives
    #JAVA_HOME="/usr/lib/jvm/java-1.5.0"
    
    # Where your tomcat installation lives
    CATALINA_BASE="/usr/share/tomcat6"
    ...
    

提交回复
热议问题