How do projects in myeclipse display configuration files such as setting, classpath, etc. in the project window

After importing other people's projects, after all kinds of jar packages are put away, the paths are also built, and the project can be started normally, but the project name has a red cross, why is this?

Some people on the Internet say that the jar package in the Java build path is missing, which is a common error.

In fact, there is another mistake: when we create a project, we can define a template independently for us to use, and define various versions of the service in it. When you import someone else's project, you need to modify the project used in the project. The service version matches the build environment of our project facets.

So where is the file that defines the service in the project project?

In the project root directory—.settings folder—org.eclipse.wst.common.project.facet.core.xml file, we can find it in the hard disk, or in myeclipse, by:

After removing it, do you find that there are more .settings folders in the root directory, and you can modify the org.eclipse.wst.common.project.facet.core.xml file in it.

So here comes the question. I just said that when we create a project, we can define a template independently for us to use. Where is this template?

Select the project-properties-Myeclipse-Project Facets, and modify the version number in the file to be consistent with our template.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324769056&siteId=291194637