Compiling a Servlet

Iam new to servlets...I have been working only with core java till now..i donnow how to compile it..it says package javax.servlet does'nt exist..i have jdk1.5, j2sdk1.4.2_11, tomcat-5.5.17..plz tell me how to compile it and run it...
[255 byte] By [diaruna] at [2007-10-2 19:58:15]
# 1
You have to set classpath to the jar file named servlet.jar which in the tomcat program directory
Karthikeyan_Vaithilingama at 2007-7-13 22:37:41 > top of Java-index,Developer Tools,Java Compiler...