royalcyber
asked on
Tomcat startup problem
Hi
I installed tomcat 4.1 and was trying to setup JAVA_HOME, CATALINA_HOME environemnt variables
I set up the JAVA_HOME varable to C:\Borland\JBuilder2005\jd k1.4
and was to trying to setup the
CATALINA_HOME variable to C:\Tomcat (where I installed the Tomcat)
but when I echo %CATALINA_HOME%
it doesn't show me any variable
In order to set up the environment variable I am going over the following procedure
right click my computer - properties
- advanced - environment variables - add
Please if any one help me in figuring out why the environment varible CATALINA_HOME is not setting up nad also if there any other variables or other steps to run TOMCAT 4.1
Thanks
I installed tomcat 4.1 and was trying to setup JAVA_HOME, CATALINA_HOME environemnt variables
I set up the JAVA_HOME varable to C:\Borland\JBuilder2005\jd
and was to trying to setup the
CATALINA_HOME variable to C:\Tomcat (where I installed the Tomcat)
but when I echo %CATALINA_HOME%
it doesn't show me any variable
In order to set up the environment variable I am going over the following procedure
right click my computer - properties
- advanced - environment variables - add
Please if any one help me in figuring out why the environment varible CATALINA_HOME is not setting up nad also if there any other variables or other steps to run TOMCAT 4.1
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As liviutudor said, you need to restart/reboot... Usually, you just need to Apply and when you open a new CMD you should have access to it. But if you had the CMD opened and you add the env. variable, it will not take it. Try openning a new CMD if you don't want to reboot.
I usually have a bat script that has those variables set and then I start tomcat. That's because I have more than one JDK in my machine for different development. Here is an example:
set APPFUSE=D:\Dev\AppFuse
set HOME=%APPFUSE%\Source
set SDKS_HOME=%APPFUSE%\SDKs
set TOOLS_HOME=%APPFUSE%\Tools
set JAVA_HOME=%SDKS_HOME%\j2sd k1.4.2_08
set ANT_HOME=%TOOLS_HOME%\apac he-ant-1.6 .5
set CATALINA_HOME=%TOOLS_HOME% \jakarta-t omcat-5.0. 28
set MYSQL_HOME=%TOOLS_HOME%\my sql-4.1.18 -win32
set PATH=%JAVA_HOME%\bin;%ANT_ HOME%\bin; %CATALINA_ HOME%\bin; %MYSQL_HOM E%\bin;C:\ WINDOWS\sy stem32;C:\ WINDOWS;C: \WINDOWS\S ystem32\Wb em;c:\bin; c:\cygwin\ bin
set APPFUSE=D:\Dev\AppFuse
set HOME=%APPFUSE%\Source
set SDKS_HOME=%APPFUSE%\SDKs
set TOOLS_HOME=%APPFUSE%\Tools
set JAVA_HOME=%SDKS_HOME%\j2sd
set ANT_HOME=%TOOLS_HOME%\apac
set CATALINA_HOME=%TOOLS_HOME%
set MYSQL_HOME=%TOOLS_HOME%\my
set PATH=%JAVA_HOME%\bin;%ANT_
ASKER
Thanks guys, I got it. But int_20h I tried running the batch file on cmd line but it didn't work. I am new to Unix commands, can u please let me know how can I run the batch file and for future refernce if I need to use different jdk for differnt applications how can I map different applications to differnt jdk's
Thnak again
Thnak again
Unix? I thought you're using a windows machine since your said: "I set up the JAVA_HOME varable to C:\Borland\JBuilder2005\jd k1.4". Anyway, you save the file as a .bat file (i.e. setmeup.bat). When you're at the CMD prompt, call the script... Make sure you change the values of your directories. The sample I provided uses different directories for the different apps I have. You probably need JAVA_HOME, ANT_HOME, and CATALINA_HOME.