title: ClassNotFoundException: spark.Request when running from command line
body: <p>Was following tutorial here: <a href="http://sparkjava.com/" rel="nofollow noreferrer">http://sparkjava.com/</a></p>
  
  <p>I downloaded <code>spark-core</code> then compiled this class:</p>
  
  <pre><code>import static spark.Spark.*;
  
  public class Main {
      public static void main(String[] args) {
          get("/hello", (req, res) -&gt; "hello world");
      }
  }
  
  $ javac -classpath ~/Downloads/spark-core-2.6.0.jar Main.java
  </code></pre>
  
  <p>and when running:</p>
  
  <pre><code>$ java -cp "~/Downloads/spark-core-2.6.0.jar:." Main
  
  
  Exception in thread "main" java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: spark/Request
      at Main.main(Main.java:5)
  Caused by: java.lang.NoClassDefFoundError: spark/Request
      ... 1 more
  Caused by: java.lang.ClassNotFoundException: spark.Request
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 1 more
  </code></pre>
  
  <p>What did i do wrong?</p>