title: SBT fails with `String.class is broken`
body: <p><code>sbt</code> fails with a cryptic error on issuing any command (<code>compile</code>, <code>assembly</code>, <code>clean</code> or any other).</p>
  
  <pre><code>$ sbt --version                                                                                                                                                          
  error: error while loading String, class file '/modules/java.base/java/lang/String.class' is broken
  (class java.lang.NullPointerException/null)
  </code></pre>
  
  <p>I am on a machine running macOS, and <code>sbt</code> was installed via <em>homebrew</em>. I have tried upgrading to the latest versions of <code>sbt</code> (<em>1.3.10</em>), but the error still persists.</p>