This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat with Windows 98 installation issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat with Windows 98 installation issue" Watch "Tomcat with Windows 98 installation issue" New topic

Tomcat with Windows 98 installation issue


Joined: May 03, 2002
Posts: 2
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 :
I modified catalina.bat to set CATALINA_HOME to
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?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

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
Posts: 2
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...
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Oct 29, 2003
Posts: 1
I too got the same problem.. can any one tell me how to solve this problem?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
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.
I agree. Here's the link:
subject: Tomcat with Windows 98 installation issue
It's not a secret anymore!