Build path is incomplete. Cannot find the class file for java.lang

I’ve run into a similar problem. I have JDK 11 installed and assigned as suggested, the Configure Build Path shows no errors, yet Eclipse won’t build my project if I set it to sourceCompatibility > 1.8.