What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"
When I used Eclipse for the first time in a long time, I thought "What?", So make a note of it. It's natural if you understand it, but it's strange until you understand it.
--Environment
--macOS Mojave version 10.14.5
- Eclipse IDE for Enterprise Java Developers. Version: 2019-03 (4.11.0)
Event: I got a warning when I selected "java8" in [Installed JRE].
Cause: You are leaving the compiler compliance level at the default
A message prompting me to change was displayed at the bottom of the screen.
Action: Change the compliance level of the compiler
- (Side menu> [Java]> [Compiler]) OR (Press the link in the above message)
- [JDK compliant]> [Compiler compliance level]> Change to "1.8" in this case
- Click the [Apply] button
- A message prompting you to rebuild is displayed> Click the [Yes] button