File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android 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/ 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 ]
I agree. Here's the link:
subject: using different JAVA_HOME for tomcat in unix
Similar Threads
Tomcat and JAVA_HOME on solaris results "cannot execute"???
Unable to compile class for JSP
Can't run java programs??
Tomcat 4.0.4 & Redhat Linux