Problems and solutions of Java eclipse import project (recommended)

Today, I imported several projects through eclipse. The project name appears red cross, which is intolerable for obsessive-compulsive disorder like me. Therefore, I will make a summary. If you meet students, you can operate according to the following methods.

The changes are mainly in two aspects:

1. Tomcat version problem.

This problem is because I found the original Tomcat 7 0 runs on tomcat8 0, so an error occurred.

Solution: right click the project to find build path --- configure build path

It is 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 locally 0

Save close.

2. JDK JRE problem

As in the previous steps of tomcat, open Settings build path and find JRE error

Edit directly without removing

Select the JRE of this machine,

Save found java compiler changed JDK version

Save close~

3. Change project profile

For all native projects, find org. Under settings in the work file eclipse. wst. common. project. facet. core. XML file. Copy the contents of the file to the file under the same file of the imported project. Remember to overwrite!

4. About coding

The imported project has a default GBK code, which makes the comments unable to display normally

Go back to eclipse and refresh the project. This is to find that there will be no exceptions in the project~

The problems and solutions (recommended) of the above Java eclipse import project are all the contents shared by Xiaobian. I hope it can give you a reference and support more programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>