title: Mac os Big Sur | No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
body: <p>I am getting this error on the screenshot and I have seen other posts about it, however, the fixes provided are mainly for Windows, so whatever I tried did not fix the issue on my Mac.</p>
  <p>Currently, when I run /usr/libexec/java_home it points me here:
  /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home</p>
  <p>So when running a maven project it throughs message like this:
  No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?</p>
  <p>So, I am wondering if the location of JAVA_HOME is incorrect, and if so how can I fix it?
  Sorry, if asking something obvious questions, but I am new to this.</p>
  <p>I would really appreciate your help.</p>
  <p><img src="https://i.stack.imgur.com/wLepZ.png" alt="enter image description here" /></p>