Beginner's Servlet Help Needed

I just copied a HelloWorld.java from an example online

HelloWorld.java:2: package javax.servlet does not exist

import javax.servlet.*;

^

HelloWorld.java:3: package javax.servlet.http does not exist

import javax.servlet.http.*;

I have Tomcat on my machine and confirgured, but can't find these jar files which contain these classes. I have a book which generally says that they are usually in the lib directory and called servlet.jar and jsp.jar, but I cant' find those. So I just set my CLASSPATH to my Tomcat directory and then lib/*.jar, server/lib/*.jar, common/lib/*.jar and it still does not work.

I'm new and confused.

Where are these javax.servlet packages?

I've also looked in the regular java directory (Java sdk 1.4.1_05)

Can someone please tell me where I am suppose to go look for this?

[871 byte] By [angelprogrammera] at [2007-9-30 2:21:08]
# 1
Just add the common/lib/servlet.jar to your classpath. Get rid of the other wildcard stuff.
yawmarka at 2007-7-16 13:30:18 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
Thanks!I didn't look in common!
angelprogrammera at 2007-7-16 13:30:18 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 3
> Thanks!> I didn't look in common! What was this "common/lib/*.jar ", then? :o)
yawmarka at 2007-7-16 13:30:18 > top of Java-index,Archived Forums,New To Java Technology Archive...