aspose file tools*
The moose likes Tomcat and the fly likes Change JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Change JRE" Watch "Change JRE" New topic
Author

Change JRE

Jali Jack
Greenhorn

Joined: Jan 05, 2008
Posts: 1
Hello,

I installed tomcat6 on a pc (windows XP SP2) with more than 1 version of JRE(JRE 1.5.x and JRE 1.6.x). Currently Tomcat run with jre 1.6.x, how can I change to jre 1.5.x?

Thank you,
Jalijack
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
If you are starting Tomcat with startup.bat, it will execute catalina.bat - look at the starting comments in catalina.bat to see all of the environment variables affecting how the JVM is started. You will see (among others)



So - Tomcat will use the JRE version that you set in catalina.bat

Running Tomcat as a service has a different way to control the JRE - sorry, I have no idea how.

Bill


Java Resources at www.wbrogden.com
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you're running it as a service and have installed it from the '.exe' version, there is a Tomcat configuration app that can be reached from the Window's Start Menu. Under the "Java" tab, there is a field for setting the JRE location.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change JRE
 
Similar Threads
Problem with Eclipse
JDK , JRE Update
Minimum Client Requirements
java.lang.UnsupportedClassVersionError
Prevent Popup from closing when clicking on J(CheckBox)MenuItem