Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

ben..............tomcat is not installing

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am trying to make the tomcat installation on windows98 operating system(63mb ram).
while tomcat installation:the path it has taken is(by default)
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin

the path of jvm installed on my system is
C:\Program Files\JavaSoft\JRE\1.2

when i open the server by clicking, startup.bat
c:\prgram files\apache software foundation\tomcat 5.0\bin
the error i am facing is:
The catalina_home environment variable is not defined correctly
This environment variable is needed to run this program

so i had to install the server to a folder in C drive& the name of it is tomcat5.0
i created a cpath.bat in C:\Tomcat5.0\bin.
The file(cpath.bat) contains
set CATALINA_HOME=C:\Tomcat5.0
set classpath=C:\ProgramFiles\Java\j2re1.4.1\lib;D:\%CATALINA_HOME%\common\lib\servlet-api.jar;d:\%

and in the command window i did.......


i was shown:

C:\Tomcat5.0\bin>set CATALINA_HOME=C:\Tomcat5.0

C:\Tomcat5.0\bin>set classpath=C:\ProgramFiles\Java\j2re1.4.1\lib;D:\C:\Tomcat5.0\common\lib\servlet-api.jar;d:\


to start the server i did:


then the error i am facing was:

The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Invalid switch
Using CATALINA_BASE: C:\Tomcat5.0
Using CATALINA_HOME: C:\Tomcat5.0
Using CATALINA_TMPDIR: C:\Tomcat5.0\temp
Invalid switch - -DJAVA.ENDORSED.DIRS=

i thought there cud be some installation problem so i reinstalledtomcat5.0 in C drive and also i've installed j2sdk1.4.1 also in c drive. and i've copied the cpath.bat file to tomcat5.0/bin in c drive,which contains
set CATALINA_HOME=C:\Tomcat5.0
set classpath=C:\j2sdk1.4.1\jre\lib;D:\%CATALINA_HOME%\common\lib\servlet-api.jar;d:\%

and in the command window i performed:

C:\Tomcat5.0>cd bin


and it has shown

C:\Tomcat5.0\bin>set CATALINA_HOME=C:\Tomcat5.0

C:\Tomcat5.0\bin>set classpath=C:\j2sdk1.4.1\jre\lib;D:\%CATALINA_HOME%\common\lib\servlet-api.jar;d:\%


and then i started


and i got this error:
Out of environment space
Cannot find
This file is needed to run this program

sir,if there are any errors in these steps performed by me.....then plzzzzz reply so that i could install the apache tomcat server at the earliest.
waiting for a reply.if u could find some time to tell me the installation right from the beginning then it would be of great help.
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, you'll need a full Java Software developement kit (JDK) to do any JSP development with Tomcat 5.0x.

I don't know if the EXE version of Tomcat runs on win98. If it does, you should only need to run the installer and make sure that it's looking at the right version of Java.

You may also need to increase the amount of ram available to your application.
Google will help you there.


PS: It's not a good idea to put people's names in the subject of your thread. The whole point of a public forum is to get your question out to as many qualified people as possible. If you address the thread to one person, someone else who knows the answer may skip by the thread altogether, thinking that it's a personal message or a question aimed at only one person.
[ June 20, 2005: Message edited by: Ben Souther ]
Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Win98 has the notorious problem of allowing too little space for environment variables. Since Tomcat uses a LOT of environment variable space to manipulate things like CATALINA_HOME, you MUST increase the environment space. Unfortunately I have forgotten the details but they have been discussed in this forum before so search for Win98
    Bookmark Topic Watch Topic
  • New Topic