Sometimes we need to import the items in MyEclipse into Eclipse, and if you don't notice some of the details, it can be a result of the inability to run. Let's talk about the operation:
How to import into Eclipse is not restated, and the following error occurred after importing:
Compared to the Web project generated by Eclipse above, deployment descriptor was found to be less: ... This item, so we're going to add it in and how to add it. First, we select the project you just imported right-click on its properties, select Project Facets, then press convert to faceted form ..., go inside and tick the dynamic Web module and Java, then OK, Will find the project under more deployment descriptor: ... This item,
Then still prompt error, open error prompt: The superclass "Javax.servlet.http.HttpServlet" is not found on the Java Build Path, The reason is that the imported project has not yet been deployed to our Tomcat, still right-click on the project properties, select Java Bulid Path, select Libraries, click on the Add Library on the right. Go in and select Server Runtime, then click Next, select the Tomcat server on your eclipse and finish.
Then click Apply to find that the previous error message has disappeared,
We're still not able to run the project because in Eclipse WebApp is stored in webcontent, and we just have to copy all the files inside the Webroot to WebContent, This allows us to run the imported Myellipse project in eclipse: