tags:

views:

474

answers:

1

Hi guys

I'm facing a problem in setting the path of tomcat.I useed a batch file to set the path, which is

cd\

set JAVA_HOME=C:\Sun\SDK\jdk

set CATALINA_HOME=c:\Tomcat5.5

set PATH=%CATALINA_HOME%\bin;%JAVA_HOME%\bin;%path%
set CLASSPATH=.;%JAVA_HOME%\lib;%CATALINA_HOME%\common\lib\servlet-api.jar;

cd %CATALINA_HOME%\webapps
start

Initially it was working, but now its not working. Please help

A: 

You only need to set the JAVA_HOME and CATALINA_HOME variables. You don't need to set the CLASSPATH (and you probably shouldn't), catalina.bat will set it properly . I recommend to use a script like the following:

set JAVA_HOME=C:\Sun\SDK\jdk
set CATALINA_HOME=c:\Tomcat5.5
"%CATALINA_HOME%\bin\startup.bat"

The above assumes that you've downloaded the zip version of Tomcat.

kgiannakakis