title: Wrong JAVA_HOME after upgrade to macOS Big Sur v11.0.1
body: <p>In my setup on macOS I'm working with several JDKs, switching between them via <code>/usr/libexec/java_home</code> tool, similar to a method described in <a href="https://stackoverflow.com/questions/21964709/how-to-set-or-change-the-default-java-jdk-version-on-os-x/24657630#24657630">this SO answer</a></p>
  <p>After upgrading to macOS Big Sur v11.0.1, my JAVA_HOME setting stopped working, always reporting the same java version:</p>
  <pre class="lang-sh prettyprint-override"><code>% /usr/libexec/java_home -V
  Matching Java Virtual Machines (5):
      11.0.8 (x86_64) &quot;AdoptOpenJDK&quot; - &quot;AdoptOpenJDK 11&quot; /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
      1.8.162.12 (x86_64) &quot;Oracle Corporation&quot; - &quot;Java&quot; /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
      1.8.0_162 (x86_64) &quot;Oracle Corporation&quot; - &quot;Java SE 8&quot; /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
      1.8.0_45 (x86_64) &quot;Oracle Corporation&quot; - &quot;Java SE 8&quot; /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
      1.7.0_45 (x86_64) &quot;Oracle Corporation&quot; - &quot;Java SE 7&quot; /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
  /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
  
  % /usr/libexec/java_home -v 1.8.162.12
  /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
  
  % /usr/libexec/java_home -v 1.7.0_45
  /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
  </code></pre>