setenv.bat

The setenv.batcommand is used to modify or to set environment variables for the Tomcat application server. These setting only apply when using the catalina.bat or the startup.bat methods for starting the tomcat application server.

Tomcat uses the following important environment variables:

Variable Description
CATALINA_HOME May point at your Catalina build directory.
CATALINA_BASE (Optional) Base directory for resolving dynamic portions of a Catalina installation. If not present, resolves to the same directory that CATALINA_HOME points to.
CATALINA_OPTS (Optional) Java runtime options used when the start, or run command is executed.
CATALINA_TMPDIR (Optional) Directory path location of temporary directory the JVM should use (java.io.tmpdir). Defaults to %CATALINA_BASE%\temp.
JAVA_HOME Must point at your Java Development Kit installation. Required to run the with the debug argument.
JRE_HOME Must point at your Java Runtime installation. Defaults to JAVA_HOME if empty.
JAVA_OPTS (Optional) Java runtime options used when the start, stop, or run command is executed.
JSSE_HOME (Optional) May point at your Java Secure Sockets Extension (JSSE) installation, whose JAR files will be added to the system class path used to start Tomcat.
JPDA_TRANSPORT (Optional) JPDA transport used when the jpda start command is executed. The default is dt_shmem.
JPDA_ADDRESS (Optional) Java runtime options used when the jpda start command is executed. The default is dbconn.
JPDA_SUSPEND (Optional) Java runtime options used when the jpda start command is executed. Specifies whether JVM should suspend execution immediately after startup. Default is n.
JPDA_OPTS (Optional) Java runtime options used when the jpda start command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS, and JPDA_SUSPEND are ignored. Thus, all required jpda options MUST be specified. The default is:
-Xdebug 
-Xrunjdwp:transport=%JPDA_TRANSPORT%, address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%

StarTeam Defaults

The following are the StarTeam Web Server defaults:

Variable Description
JPDA_TRANSPORT dt_socket
JPDA_ADDRESS 8000
JPDA_SUSPEND y
JAVA_OPTS
JAVA_OPTS=-Xmx4096M -Dcom.borland.configdir="%CATALINA_HOME%\shared\lib" -Djava.library.path="%CATALINA_HOME%\shared\lib"
JRE_HOME C:\Program Files\Micro Focus\StarTeam 16 Web Server\jre