aspose file tools*
The moose likes Tomcat and the fly likes JRE version update for Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JRE version update for Tomcat" Watch "JRE version update for Tomcat" New topic
Author

JRE version update for Tomcat

Vivek Kant
Greenhorn

Joined: May 08, 2006
Posts: 6
Hi.
I am running Tomcat 5.0.28 for my application, using JRE 1.4 originally. Now, I want to upgrade to JRE 1.5.
Can someone please tell me how Tomcat must be reconfigured in order to switch from one JRE version to another?

I'm having a lot of problems fixing this.

Thanks,
Vivek
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It depends on how it was installed.
How did you install it?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Vivek Kant
Greenhorn

Joined: May 08, 2006
Posts: 6
I'd installed it by invoking bin\service.bat install
I'm NOT using the single installer EXE which brings up a set of dialog boxes for installation.

Afterwards, I'm changing the configuration of the Tomcat service, such as User account/password, service startup type & failure actions.

What I essentially wanna know is if we need to re-install the Tomcat service if we want to use a different JRE?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

When you install it as a service, the JVM/JRE settings are stored in the registry. If you use the .exe, there is also an option to install the start menu items. From the start menu, there is a config screen that allows you to configure the path to your JRE.

I don't know if these are installed when you use the bat file.
If not, you could edit the registry entries yourself with regedit or, it might be quicker to unistall and re-install.

Search your registry for 'Apache' or 'Tomcat'
Vivek Kant
Greenhorn

Joined: May 08, 2006
Posts: 6
Thanks a lot!

It worked after re-installing the service. Just changing the registry entries was not apparently enough.

There was no entry being made in Start Menu, so trying to use the congif screen was out of question. Tomcat it essentially an invisible service for a normal user of my system; it can be detected only by going to Services Panel.
 
Consider Paul's rocket mass heater.
 
subject: JRE version update for Tomcat