Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Eclipse reported an error after changing the JDK version

Shulou Source: shulou.com Published: 2022-06-01 07:39:53 10月03日 Update

In the actual development process, perhaps due to the needs of the project, we need to change the version of JDK. However, an error will be reported after replacement, as follows:

Java compiler level does not match the version of the installed Java project facet.

Solution:

Step 1: set the eclipse JDK version

Windows---- > Preferences---- > Java---- > Installed JREs

Step 2: set the compiled version of JDK

Windows---- > Preferences---- > Java---- > Compiler

Step 3: right-click the project and set the JDK version of the project to the unified one above

Right-click the project-> Properties---- > Java Compiler

Tags: Version project method practice process report development unification compilation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Huawei Microsoft Linux Docker