While running java web project I got following error.
java: package javax.servlet does not exist
Two solve you need to add javax.servlet-3.0.jar file in your project or ide while executing code
you can download jar from this URL:
File -> Project Structure->Libraries
and add javax.servlet-3.0.jar library
Detail can found in this video