environment variable JAVA_HOME for tomcat
i have redhat 9
i installed tomcat 5
when i start this the shell says:
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
how to set this environment variable?? I tried many priocedures, but none worked.
Re: environment variable JAVA_HOME for tomcat
that means your JAVA_HOME is not set
have you installed JAVA in your system (it should be j2sdk-1.4.X) for catalina 5.
here are some steps to set your JAVA_HOME:
enter it into /etc/profile file
open your /etc/profile file and write this below HISTSIZE:
and now in export line add this JAVA_HOME
it will look like
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME
catalina detects the JAVA from JAVA_HOME environment variable so you need JAVA_HOME exported.
now time to rerun your profile file so that it will be effective:
you can check if JAVA_PATH is effective with this command
it will show you the version of your java installed.