• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat-Installation

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Renuka Kilambi
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic