How to import a Web project from MyEclipse to run in eclipse

Source: Internet
Author: User
Tags tomcat tomcat server

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.