• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Change JRE

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic