you have to configure the class path for servlet-api also in the environment variable only then it can be compile and run