File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Tomcat-Installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat-Installation" Watch "Tomcat-Installation" New topic
Author

Tomcat-Installation

Renuka Kilambi
Greenhorn

Joined: Apr 21, 2000
Posts: 23
Hi,
I downloaded Tomcat and unzipped and kept in a directory named tomcat.But when I am trying to run tomcat by typing startup a window is opening and getting closed immediately. I tried pressing CTRL+s as given in one of the postings here.But I am unable to freeze it. And I don't know what to do? I am new to servlets. I am trying to start learning them by first installing on my PC on WIn'98.
any suggestions?
Thanks in advance
Renuka
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

If you could answer the foll. qstns I could do more.....
1. what is your class path.
2. did you set TOMCAT_HOME, JAVA_HOME?
99 % of the times, you might see a ClassNotFoundException
when you do the CTRL-S. which means your classpath is not
correct.

Regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Renuka Kilambi
Greenhorn

Joined: Apr 21, 2000
Posts: 23
Hi,
my class path is
CLASSPATH=.;D:\APPS\jdk1.3\BIN;D:\RENUSJAVA;d:\apps\jdk1.3;d:\renusjava\tomcat\bin
yes I have set the JavaHome.
Any ideas?
thanks
Renuka
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

You do need tools.jar in your classpath.
It generally is under the JAVA_HOME\lib
dir (atleast in jdk1.2).
Hope this helps,
regds.
- satya
Renuka Kilambi
Greenhorn

Joined: Apr 21, 2000
Posts: 23
Hi,
I set tools.jar in the class path. I started tomcat in a seperate window. The comments I got are

Usage:
Bad command or file name
Bad command or file name
Bad command or file name
start - start tomcat in a separate window
run - start tomcat in the current window
env - setup the environment for tomcat
stop - stop tomcat
ant - run ant with tomcat context
jspc - run jsp pre compiler
I am getting frustrated.Anyhelp?
bye/renuka
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Could you email me your autoexe.bat file so i can edit
it and send it back to you.
don't get frustrated, trust me its a simple thing you are missing. hang on.....
regds.
- satya
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Hi Renuka,
If I am not wrong, I think you just typed "tomcat" at the Dos prompt in the bin directory isn't? Instead you have to type "tomcat start" and press enter. Another way is just type "start". The start.bat file inturn calls tomcat with start arg.
C:\jakarta_tomcat\bin\tomcat[ENTER] //not correct
C:\jakarta_tomcat\bin\tomcat start[ENTER] // correct
C:\jakarta_tomcat\bin\start[ENTER] // correct
regds
maha anna
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat-Installation