I give you the reference of a book that describe the details execution of servlet. setting of path and class path.
book name- core servlet and jsp. auther- Marty hall.
to download this book -- www.dbebooks.com
path = JAVA_HOMEBIN
classpath= [servlet api which is provided by J2EE server like Tomcat, GlassFish, jboss, weblogic]