wood burning stoves 2.0*
The moose likes Tomcat and the fly likes using different JAVA_HOME for tomcat in unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "using different JAVA_HOME for tomcat in unix " Watch "using different JAVA_HOME for tomcat in unix " New topic

using different JAVA_HOME for tomcat in unix

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
i installed tomcat on some unix machine , now the application on this machine is
using the JAVA_HOME variable that points to java 1.3 and i cant change this variable
i installed java 1.5 but now how can i tell tomcat to use this java version without changing
the JAVA_HOME variable
Kaustabh Singha Roy
Ranch Hand

Joined: Oct 04, 2005
Posts: 43
I have never worked on any Unix system and also very less aware of them. But at least on Red Hat Linux this is possible by exporting a JAVA_HOME from within the bin/startup.sh file with the new value of the JAVA_HOME. Thus at each startup this new value will be available to tomcat but not to other applications.

Hope this will help.
[ February 19, 2007: Message edited by: Kaustabh Singha Roy ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: using different JAVA_HOME for tomcat in unix
Similar Threads
Tomcat and JAVA_HOME
Unable to compile class for JSP
Can't run java programs??
Tomcat 4.0.4 & Redhat Linux
startup.sh on solaris results "cannot execute"???