0

I'm facing a problem in setting the path of tomcat. I used 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 it's not working.

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Pranjut
  • 1,747
  • 5
  • 18
  • 31

1 Answers1

1

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
  • 103,016
  • 27
  • 158
  • 194