We often download some open source projects on the Internet, or migrate some projects from other places, but often find various errors after the import. This is a beginner Java will encounter problems, this article on some of the common treatment plan to do a summary. (This article will take the MyEclipse project into eclipse as an example, other cases can refer to this process)
This is a new Web project with MyEclipse.
Now, to import it into Eclipse, let's find out what interesting things are going to happen.
Open Eclipse
Right-click in the blank of the project view on the left:
Import--Import--general--Existing Projets into Workspace
Next, then select the items you want to import.
When selected, the finish icon is lit.
Then click Finish and the project will be imported.
The project has a red fork because some places need to be reconfigured.
First, the jdk or JRE used in the previous myeclipse is not the same.
The first thing is to replace the cost of the jdk or JRE , right-click on the project--build path--configure Build Path
With the JRE System Library selected, click Edit
OK, then finish.
Finally click OK to exit.
Now you can see the project inside the file is not an error, but the project also has a red fork.
Locate the folder where the item is located, open setttings
Open this org.eclipse.wst.common.project.facet.core.xml with Notepad.
To remove this line
Go back to Eclipse and refresh the project.
This will not be an error.
If the also reported is wrong, it is possible that the project version is too high, the following sentence in the version of the project to lower the line, generally 2.5 and 3.0 are OK.
If not, you have to go to eclipse's problem view to see the error message.
How to import an MyEclipse project into eclipse