Unbound classpath container: 'JRE System Library [jdk17060]' in project ***

项目错误列表中报 Unbound classpath container: 'JRE System Library [jdk17060]' in project **** 的错误,

原因是我升级了JDK的版本,把之前配置使用的Installed JREs项给删除了,如下图:

Unbound classpath container: 'JRE System Library [jdk17060]' in project ***_第1张图片

解决办法:

在项目上单击鼠标右键》Build Path》Configure Build Path

Unbound classpath container: 'JRE System Library [jdk17060]' in project ***_第2张图片

Java Build Path》Libraries,删除错误的Libraries,Add Library

Unbound classpath container: 'JRE System Library [jdk17060]' in project ***_第3张图片

选中JRE System Library,Next

Unbound classpath container: 'JRE System Library [jdk17060]' in project ***_第4张图片

选择“alternate JRE”,如果下拉列表中没有,就点右侧的“Installed JREs”按钮添加,选择完成之后单击Finish按钮完成。

Unbound classpath container: 'JRE System Library [jdk17060]' in project ***_第5张图片

你可能感兴趣的:(Unbound classpath container: 'JRE System Library [jdk17060]' in project ***)