Wednesday, April 1, 2009

Setting Tomcat's JVM path in the registry

If you have, like me, installed Tomcat using its .exe installer (which displays a set of dialog boxes) rather than running the bin\service.bat install in a pre-configured Tomcat, there is a way to change Tomcat's JVM path.

As you all probably already know, Tomcat's GUI has a Java tab
Tomcat's JVM settings are stored in the registry. You can change the JVM path to the jvm.dll file in your newly installed JRE directory.

In my case, I needed to configure it using regedit. To do this, go to the following subkey in HKLM:
SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat6\Parameters\Java\

Here, you can change the value data for the 'Jvm' value name.

Hope this helps!

No comments:

Post a Comment

Thank you for your comment.