There is nothing wrong in the java program, but the solution shows a red cross on the project

There is nothing wrong in the java program, but the solution shows a red cross on the project

 

Error message:

Report Description Resource Path Location Type Java compiler level does not match the version of the installed Java project facet. The reason for this problem is that the jdk compiled version of eclipse/myeclipse is inconsistent with the JDK compiled version of the project in question!

 

 

 

Tools/Materials

  • eclipse/MyEclipse

Baidu experience: jingyan.baidu.com

method/step

  1. 1

    First set up the jdk, you need to determine the project, eclipse/myeclipse, the system uses the same version of JDK, the JDK installed in my system is 1.7, so I changed the jdk of eclipse to 1.7

    Java compiler level does not match solutionSteps to read
  2. 2

    Enter windows---proferences---java--compiler to set the format of the compiled file to be version 1.7 (it can be set to any number, as long as it is compatible and it is always compatible with the compiled version of your project, I will set it uniformly here into 1.7)

    Java compiler level does not match solutionSteps to read
  3. 3

    Enter the project --properties---java Compiler and set the project compilation version to 1.7

    Java compiler level does not match solutionSteps to read
  4. 4

    Enter the project --properties---Myeclipse---project Facets to set the version of the java file to 1.7

    Java compiler level does not match solutionSteps to read
  5. 5

    At this point, complete the configuration Thanks https://www.cnblogs.com/soundcode/p/6306101.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326575464&siteId=291194637