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
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
> 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