What are the tomcat jre_home and java_home variables used for?



  • Environment Variables: JRE_HOME or JAVA_HOME
    Setting: required

    From the Apache Tomcat documentation:
    https://tomcat.apache.org/tomcat-9.0-doc/RUNNING.txt

    These variables are used to specify location of a Java Runtime
    Environment or of a Java Development Kit that is used to start Tomcat.

    The JRE_HOME variable is used to specify location of a JRE. The JAVA_HOME
    variable is used to specify location of a JDK.

    Using JAVA_HOME provides access to certain additional startup options that
    are not allowed when JRE_HOME is used.

    If both JRE_HOME and JAVA_HOME are specified, JRE_HOME is used.
    The recommended place to specify these variables is a "setenv.sh" script. In $CATALINA_HOME/bin



© Lightnetics 2024