Link to home
Start Free TrialLog in
Avatar of avernet
avernet

asked on

How to change JAVA_HOME and JAVA_OPTS on Tomcat installed on Linux?

I have a version of Tomcat 5.5 installed on Linux with a package, and while I am used to deal with sh scripts stored in the Tomcat bin directory, here /usr/share/tomcat5/bin doesn't contain the usual scripts and Tomcat is started instead with /usr/java/latest/bin/java. Do you have any advice on how to change the JAVA_HOME and JAVA_OPTS (to set VM parameters such as heap size) in this environment?

Alex
ASKER CERTIFIED SOLUTION
Avatar of mohammedf
mohammedf
Flag of Palestine, State of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of avernet
avernet

ASKER

Thank you for the tip. But I have been already trying to set JAVA_OPTS and JAVA_HOME in /etc/profile, but that didn't have any effect.

Alex
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of avernet

ASKER

Uninstalling and reinstalling the JDK and Tomcat packages solved the problem. And after this, setting the variables in /etc/profile works. Thanks guys.

Alex