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)
GD
Greenhorn
Joined: May 03, 2002
Posts: 2
posted
0
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...
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
GD, Sadly, your name does not meet the requirements of JavaRanch's naming policy. Please choose a name that does. [ May 10, 2002: Message edited by: Bodie Minster ]
Satish Babu
Greenhorn
Joined: Oct 29, 2003
Posts: 1
posted
0
I too got the same problem.. can any one tell me how to solve this problem? thanks, Satish
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 11863
posted
0
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