Java project conversion to WEB Project in eclipse

Source: Internet
Author: User

 

When importing a web project in eclipse, you may not be able to convert the project type. After importing the project, it is a Java project. I have experienced many times. Today, some colleagues have encountered similar problems, write down the solution so that you do not need to search for it in the future.

Solution:

1. Enter the project directory, and you can see the. project file. Open.

2. Find <natures>... </natures>Code.

3. Add and save the following TAG content to the code snippet in Step 1:

<Nature> org. Eclipse. WST. Common. Project. facet. Core. Nature </nature>
<Nature> org. Eclipse. WST. Common. modulecore. modulecorenature </nature>
<Nature> org. Eclipse. Jem. workbench. javaemfnature </nature>

4. Right-click the Eclipse project and refresh the project.

5. Right-click the project and choose Properties)

6. Click "project facets" in the list project on the left, select "dynamic web module" and "Java" on the right, and click "OK" to save the configuration.

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.