Today, I imported several projects through eclipse, and the project name has a red cross, which is intolerable for obsessive-compulsive disorder like me. Therefore, I will summarize it now. When I encounter classmates, I can follow the following methods.
There are two main changes:
1. Tomcat version problem.
This problem is because I found that the original Tomcat 7.0 of the project was running and the native Tomcat 8.0, so I got an error.
Solution: Right-click the project to find Build Path --- configure Build Path
I found that the version of Tomcat is 7.0, so remove it first and select Add Library
Select server runtime Next select Tomcat8.0 configured in the local machine
Save Close.
2.jdk jre problem
Just like the previous steps of Tomcat, open settings Build Path and find a jre error
Et it directly without removing
Select the jre of the machine,
Save Java Compiler Change jdk version
Save Close ~
3. Change the project configuration file
All the native projects find the org.eclipse.wst.common.project.facet.core.xml file under settings under the work file, and copy the file contents to the file under the same file in the imported project. Remember to overwrite it!
4. Regarding coding issues
The imported project default GBK encoding, which causes the comments to not be displayed normally
Go back to eclipse to refresh the project, and it is discovered that there is no abnormality in the project~
The above article about the problems and solutions that occur in the eclipse import project (recommended) is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.