How to transform a java project into a web project

Source: Internet
Author: User

Sometimes importing a web project into eclipse will become a general java project, so that it cannot be deployed to the web server. The following methods can be used to convert a java project to a web project:
1. Open the disk path of the project to be converted in Eclipse, find the. project file in the root path, and open it! Find Label. For java projects, only
Org. eclipse. wst. common. modulecore. ModuleCoreNature
Org. eclipse. wst. common. project. facet. core. nature
Org. eclipse. jdt. core. javanature
Org. eclipse. wst. jsdt. core. jsNature
Without Org. eclipse. jem. workbench. JavaEMFNature Therefore, you need to paste the sentence from a normal web project.

2. In Eclipse, select Project --> right-click --> properties --> Project Facets and select the check boxes before "Dynamic Web Module 2.3" and "Java, click Apply ---> Save and refresh the project to become a Web project!


3. Sometimes a dynamic web module 3.0 requires java 1.6 or newer error occurs. You need to modify the selected project --> right-click --> properties -- Java Compiler to 1.6 for compilation, then, repeat the second step.

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.