Home  >  Article  >  Java  >  Myeclipse project imports settings in eclipse

Myeclipse project imports settings in eclipse

巴扎黑
巴扎黑Original
2017-06-27 09:13:271788browse

Right-click in the blank space of the project view on the left:

Import -- Import -- General -- Existing Projets into Workspace

Next, and then select the project to be imported

After selecting, the Finish icon will be lit.

Then click Finish and the project will be imported.

A red cross appears in the project because some places need to be reconfigured.

First of all, in the previous MyEclipse, the jdk or jre used were probably different.

The first thing is to replace the local jdk or jre, Right-click on the project——Build Path——configure Build Path

Select JRE System Library and clickedit

##After that, click

Finish.

#Finally click OK to exit.

#Now you can see that no errors are reported for the files in the project, but there is still a red cross on the project.

Find the folder where the project is located and open settings

Use Notepad to open this org.eclipse.wst.common.project.facet.core.xml

Delete this line

Go back to eclipse and refresh the project.

This way no error will be reported.

If an error is still reported, it may be that the project version is too high. Just lower the project version in the sentence below. Generally, 2.5 and 3.0 are acceptable.

If it still doesn’t work, you have to go to the problem view of eclipse to check the error message.

Import projects created under MyEclipse into Eclipse for detailed graphic and text configuration methods

1. Scene reproduction.

Some people prefer to use Myeclipse to develop, while some people prefer to use eclipse to develop. But there is a problem. There is a small problem when importing the project in Myeclipse.

2. Description of the problem

The imported project package is not only displayed outside, but also cannot be deployed to tomcat.

So what configuration do we need?

3. Deal with the problem.

1. Import the project created under MyEclipse

2. Turn the project into a Web project, right-click on the project-->Properties-->Select Project Facets.

3. Select the two items (java and Dynamic Web Module) and javaScript framed by the red line.

4. Click OK to save. The project directory structure is as follows:

5. Delete the webcontent directory.

The effect is as follows:

6. Remove the webcontent directory in the configuration.

Right-click on the project-->Properties-->Select Deployment Assembly-->Select WebContent and click the Remove button on the right.

7. Add the webroot directory.

Click the Add button and select Folder-->Next

##Add the project to Tomcat and it will run.

Configuration completed.

The above is the detailed content of Myeclipse project imports settings in eclipse. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn