This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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
Author

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using different JAVA_HOME for tomcat in unix
 
It's not a secret anymore!