in direct import
after the MyEclipse project file is imported into eclipse, it is necessary to change the. project file under the project folder into the workspace that you put in the item, such as the following:
1. Create a new Web project in Eclipse to overwrite the. project file under the root folder under the same folder as the exported project.
2. Open the. project file for the imported project, and change the value below <name>test</name> Center to
After that, refresh the project projects file. Then, right-click Project-->properties--> Select Project Facets, tick dynamic Web module and Java, and tick tomcat in runtime.
Then go to the project folder and change the org.eclipse.wst.common.component within its. Settings folder.
<wb-resource deploy-path= "/" source-path= "/webroot"/>
You can then refresh the project projects file, delete the webcontent, and publish and execute it in Tomcat.
Eclipse Import myeclipseproject (Web project shown as solution for Java project)