Steps to set the classpath to access Servlets API in Tomcat Web Server
- Right click on computer icon & click on properties
- Click on "Advanced system settings" hyper link
- Click on "Advanced" tab & click on "Environment Variables" button
- Click on "New" button under User variables
- Type Variable name "classpath" & type Variable value "C:\Program Files\Apache Software Foundation\Tomcat 9.0\lib\servlet-api.jar; & click on "OK" button