How to Solve “The import javax.servlet cannot be resolved” Error

This problem is caused by the removal of the previous runtimeserver.

It usually also occurs when you import another person’s project a second time.

Two solutions:

1. Copy and paste the servlet-api.jar in the Tomcat file lib being used into the web/inf lib under the current error reporting project

2. Project properties build Java path – add library server runtime – select the currently used server finish

solve

Similar Posts: