Eclipse imports the servlet project and lacks the jar package of the servlet, resulting in an error
Solution:
Step1: selected item – > properties
Step 2: selected targeted runtimes
Step 3: select the Tomcat server you opened on the right – > Just apply
Similar Posts:
- [Solved] javax.servlet.jsp.JspException cannot be resolved to a type
- Eclipse: Target runtime Apache Tomcat v7.0 is not defined
- The following table: unable to import javax. Servlet. HttpServletRequest
- Error in importing web project from eclipse
- The solution of the import javax.servlet cannot be resolved in Java
- import javax.servlet.http.HttpSession;
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
- HTTP Status 500 – Unable to compile class for JSP settlement program
- How does eclipse ignore JS files with errors
- [Solved] Setting property ‘source’ to ‘org.eclipse.jst.jee.server:test’ did not find a matching property