you must set JAVA_HOME environment variable with jdk folder path without ending with ';', and set classpath with servlet-api.jar path .
note that classpath should start with .; then try ur servlet...