Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
SET JRE_HOME=C:\opt\apachetomcat.0\java
Note
titleI've since found a more portable option using "$CATALINA_HOME" have only verified this works on my local Windows 7 machine. I still have to try this on a real server but it should work..

SET JRE_HOME=%CATALINA_HOME%\jre1.6.0_20_32-bitjava

Verify your change using version.bat you will see the following results,

Code Block
version.bat
Using CATALINA_BASE:   "E:\opt\apache-tomcat-6.0.26.0"
Using CATALINA_HOME:   "E:\opt\apache-tomcat-6.0.26.0"
Using CATALINA_TMPDIR: "E:\opt\apache-tomcat-6.0.26.0\temp"
Using JRE_HOME:        "E:\opt\jre1.6.0_20_32-bitjava"
Using CLASSPATH:       "E:\opt\apache-tomcat-6.0.26.0\bin\bootstrap.jar"
Server version: Apache Tomcat/6.0.26
Server built:   March 9 2010 1805
Server number:  6.0.26.0
OS Name:        Windows 2003
OS Version:     5.2
Architecture:   x86
JVM Version:    1.6.0_20-b02
JVM Vendor:     Sun Microsystems Inc.

...

In Windows, you probably want to make use of Windows Services to automatically startup, shutdown and even stop and start Tomcat.

Code Block
cd C:\opt\apache-tomcat-6.0.26.0_32-bit\bin
service.bat install "Tomcat instance tomcat.0"

...

Code Block
languagebash
cd C:\opt\apache-tomcat-6.0.26.0_32-bit\bin
tomcat6.exe //US//Tomcat6a --JavaHome=C:\opt\jre1.6.0_20_32-bitjava
tomcat6.exe //US//Tomcat6a --Jvm=C:\opt\jre1.6.0_20_32-bitjava\bin\client\jvm.dll

Tomcat Icon on System Tray

...

Code Block
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"ApacheTomcatMonitora"="\"C:\\opt\\tomcat.0\\bin\\tomcat6w.exe\" //MS//Tomcat Instance tomcat.0"

...

Finally log out and log back in. You should now see the tomcat icon on the system tray.

Setup Tomcat

...

Instance 1

Warning

Figure out how to link to headings here for the document.

...