DHTML Zen Jungle

Wednesday, September 21, 2005

Tomcat 5 as a Service, and my JVM

Apparently when you install Tomcat as a service on Win32, it takes notice of your Java installation and really, really remembers where to run Java.

It doesn't just rely on %JAVA_HOME%, it actually creates a registry key to remember this.

So if you install Tomcat as a service, install a new JDK/JRE, then delete the JRE Tomcat was pointing to, you'll need to correct this. Find the Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Java

In the data called "Jvm" you'll see something like C:\Java\j2re1.4.2_05\bin\client\jvm.dll. Change this to some other jvm.dll which you'd like it to use.

0 Comments:

Post a Comment

<< Home