I have Java 2.0 installed in "c:\java" directory I have Tomcat 4.0 installed in "c:\jakarta-tomcat-4.0" directory. I modified c:\autoexec.bat to include the foll line : SET JAVA_HOME = C:\JAVA I modified catalina.bat to set CATALINA_HOME to c:\jakarta-tomcat-4.0. Now, when I try to start the server via the startup script, it gives me the foll message: Using Catalina_Base: c:\jakarta-tomcat-4.0 Using Catalina_Home: c:\jakarta-tomcat-4.0 Using Catalina_TmpDir: c:\jakarta-tomcat-4.0\temp Using Java_Home: c:\java Then immediately, another MS-DOS window pops up listing a huge number of lines of java code begining with: java.lang.reflect.InvocationTargetException:java.lang.NoClassDefFoundError:javax naming/Naming Exception Before I can read the rest, the window closes.... Can anyone advise me on how to get the Tomcat started?
put the CATALINA_HOME in autoexec.bat as well. The one startup.bat file calls a second file, and CATALINA_HOME won't be set in this one.
to make the window stay open, open a DOS window first, and run the script from the command prompt (not the shortcut)
Joined: May 03, 2002
Hi!Mike, Thanks for responding. I included the command "SET CATALINA_HOME = C:\JAKARTA-TOMCAT-4.0" in my c:\autoexec.bat file. Restarted my PC and tried to startup the server from the dos prompt. It gave the foll. message: Out of environment space Cannot find This file is needed to run this program I did check the startup and shutdown files. Their initial environment memory is set to 4096, so shouldn't cause any memory/space problems...
Ah yesssss - a very annoying thing about Win98 - it does not give you enough memory space in the MSDOS console for environment variables that Tomcat wants to create. Unfortunatly I don't have a Win98 running, but as I recall, you need to change a setting that you can get to by right-clicking in the upper left corner of a console window and going to the properties dialog. Increase the environment memory space to something like 8K - if I recall correctly. Bill