I think u have posted in the wrong forum. It shud have been in the Servlets forum.
Servlets r not part of the core language and hence u got that exception. Typically to run a servlet program u have to have some kind of servlet container like Tomcat. When u install apache tomcat, Servlet and JSP jar files r included with it. U can use any other webserver that is available.