"Out of environment space" when running Tomcat on Windows 98.
One solution is to edit the CONFIG.SYS file and add this line:
SHELL=C:COMMAND.COM C: /E:8192 /P
It may be possible that you already have a similar line, in that case you can increase the value after the '/E:' option, that is the size of the environment space. Remember to reboot. If you still have the same error, increase the number.
Another solution is to use the properties (right click) on the starting batch file (startup.bat or, based on the version of Tomcat, tomcat.bat or catalina.bat), increasing the environment size in the memory tag.