error when starting tomcat in win2000 pro

I have set up the required variables in order to run the startup.bat file and I get the following error when attempting to start it:

java org.apache.tomcat.startup.Tomcat

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tomcat/sta

rtup/Tomcat

I have modified my Startup.bat file as follows:

@echo off

SET TOMCAT_HOME="C:\jakarta-tomcat-3.2.3"

goto start

:start

call "%TOMCAT_HOME%\bin\tomcat" start %1 %2 %3 %4 %5 %6 %7 %8 %9

:eof

--

The classpath is set and working for jdk1.3.1

Can somebody please let me know what I am doing wrong?

Thank you

[663 byte] By [cmitulescu] at [2007-9-26 2:06:43]
# 1
You can make life easy for yourself by making sure that:1. Your JAVA_HOME env var is set to your default Java version.2. You have also set the TOMCAT_HOME env var.If you do this the TC bat files will run TC - sans change.Miles
daffin at 2007-6-29 8:53:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

My problem seems to be a classpath one but I might aswell give your solution a go. Can you please confirm that the JAVA_HOME variable refers to the directory where java is installed?

JAVA_HOME=C:\jdk1.3.1

TOMCAT_HOME=C:\jakarta-tomcat-3.2.3

Can you please tell me if I am using the correct sintax? I have omited the "set" because in win 2000 you just fill in the env variables box.

Thank you

cmitulescu at 2007-6-29 8:53:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

> My problem seems to be a classpath one but I might

> aswell give your solution a go. Can you please confirm

> that the JAVA_HOME variable refers to the directory

> where java is installed?

>

> JAVA_HOME=C:\jdk1.3.1

> TOMCAT_HOME=C:\jakarta-tomcat-3.2.3

>

> Can you please tell me if I am using the correct

> sintax? I have omited the "set" because in win 2000

> you just fill in the env variables box.

> Thank you

This seems correct. I find it easiest to set such stuff as global env vars. In Win2K:

My Computer --> Properties --> Advanced --> Environment Variables -->System Variables --> New

The other tip is to omit version information from your Tomcat Install directory's name: e.g. C:\AppServers\TOMCAT.

If you do this you can just unzip new releases into this dir and everything should still work.

Miles

daffin at 2007-6-29 8:53:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...