title: Scala SBT - Java ClassNotFoundException when running simple command
body: <ol>
  <li><p>I am using OpenJDK 11 with SBT 1.5.4</p>
  </li>
  <li><p>I have also set my System Environment Variable path to <code>C:\sbt\bin</code> - i.e. I am on Windows</p>
  </li>
  <li><p>I also have JAVA_HOME defined.</p>
  </li>
  </ol>
  <p>When I run <code>sbt</code> command from command line, I am getting the following error:</p>
  <pre><code>copying runtime jar...
  [info] [launcher] getting org.scala-sbt sbt 1.4.1  (this may take some time)...
  [info] [launcher] getting Scala 2.13.3 (for sbt)...
  java.lang.NoClassDefFoundError: scala/Serializable
          at sbt.internal.ClassLoaderWarmup$.warmup(XMainConfiguration.scala:31)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:566)
          at sbt.internal.XMainConfiguration.run(XMainConfiguration.scala:82)
          at sbt.xMain.run(Main.scala:46)
          at xsbt.boot.Launch$.$anonfun$run$1(Launch.scala:149)
          at xsbt.boot.Launch$.withContextLoader(Launch.scala:176)
          at xsbt.boot.Launch$.run(Launch.scala:149)
          at xsbt.boot.Launch$.$anonfun$apply$1(Launch.scala:44)
          at xsbt.boot.Launch$.launch(Launch.scala:159)
          at xsbt.boot.Launch$.apply(Launch.scala:44)
          at xsbt.boot.Launch$.apply(Launch.scala:21)
          at xsbt.boot.Boot$.runImpl(Boot.scala:78)
          at xsbt.boot.Boot$.run(Boot.scala:73)
          at xsbt.boot.Boot$.main(Boot.scala:21)
          at xsbt.boot.Boot.main(Boot.scala)
  Caused by: java.lang.ClassNotFoundException: scala.Serializable
          at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          ... 18 more
  [error] [launcher] error during sbt launcher: java.lang.NoClassDefFoundError: scala/Serializable
  </code></pre>
  <p>I don't know what I am doing wrong because as per documentation, this should just work. I also tried deleting <code>HOME/.sbt</code> directory to repeat the process, but no luck. Any idea from anyone?</p>