[Eclipse m2] Error: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
What to do, if you see No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK error in eclipse?