I know its duplicate, and before everyone give link to the solved question, I have already tried the steps here and I'm still facing the issue on every project I'm creating, these are the error shown when I create Servlet even though all files are shown and are included in build path and the server is also recognised by the eclipse its still not linking the API to the project
Asked
Active
Viewed 538 times
1 Answers
0
I was using the servlet-api given by tomcat and they have placed all the classes in
jakarta.servlet.*;
so when creating servlet from eclipse, it doesn't know the change and created the file with javax.servlet.*;
, the universal way, and had to import again from jakarta package.
which caused the issue.

MeganeKun
- 1
- 1