• 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

Plz clear my doubt

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am new to servlets.I am not able to compile and run it.
I downloaded Tomcat4.1
I want to know the requirements to compile and run servlet.

can anybody please help me.

Thanks,
UmaVinodh.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Uma,
Is servlet-api.jar in your classpath when you compile?

For an incredibly detailed tutorial, see the one at core servlets
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With Tomcat 4, the jar file is named servlet.jar.
 
Sheriff
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
See:
http://faq.javaranch.com/view?CompilingServlets


Moving to Java In General (Beginner) where all javac and classpath issues go.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UMA VINODH,

"Plz" is not a real word. Please be sure to use only real words such as "please" when posting to the JavaRanch.

And here are a few more tips to help you get the most out of JavaRanch as a resource:

1) Please modify your display name to be mixed case. The all-uppercase name is rather jarring and could be considered rude (shouting) by some. Our eyes will thank you.

2) Using a descriptive title helps direct the attention of those familiar with the area of your issue. "Plz clear my doubt" tells us nothing about the nature of your question. Please read this for more information.

3) Aside from telling us that you are having trouble compiling, your post is very light on details. It'd be more effective to include information such as how and what you've tried already. Please include more detail in your posts so that others know how to help you better.
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic