• 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

how to tell tomcat to use different JAVA_HOME

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I thought there was a way to tell tomcat to use a different JAVA_HOME?

I have 3 different jdk on server. The one that is set as the Environment Varible will not work with the version of tomcat I need to install. I cannot change it to it must stay as is.

I could have sworn there was a way to point Tomcat at a different jdk to use?

anyone refresh my memory?

any help much appreciated.
 
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
What OS?
How did you install Tomcat (Zip file or the ".exe" installer)?
 
erin lang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It will set on Red Hat AS V4

The Tomcat I will be using is 5.5.9

The JDK is 1.5 it is to use.
 
Ben Souther
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
For Unix, the JAVA_HOME environment variable is what Tomcat uses to find java.

If you're using 5.5 or higher, you can run tomcat without the full software development kit. If you're doing so, you need to set the JRE_HOME environment variable.

You can always set these right in the wrapper script (startup.sh) or write your own script that sets JAVA_HOME to what you want and then calls startup.sh.
[ September 22, 2005: Message edited by: Ben Souther ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic