title: Building unirest request without maven
body: <p>I'm been trying to learn unirest and apparently, I'm stuck with the situation of learning how to compile it without using maven. Below is what I've learned so far since most of the tutorials I've found is teaching unirest with maven. I'm not sure what else I missed but this is what I got so far:</p>
  
  <pre><code>import com.mashape.unirest.http.HttpResponse;
  import com.mashape.unirest.http.JsonNode;
  import com.mashape.unirest.http.Unirest;
  import com.mashape.unirest.http.exceptions.UnirestException;
  
  public class MainMethod {
      public static void main (String argsp[]) throws UnirestException {
          HttpResponse&lt;JsonNode&gt; jsonResponse = Unirest.get("http://www.mocky.io/v2/5bc4373c300000b8097587bd")
                  .header("accept", "applicaiton/json").queryString("apiKey","123")
                  .asJson();
  
          System.out.println(jsonResponse.getBody());
      }
  }
  </code></pre>
  
  <p>Each time I try to run the source code, I get the error:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/HttpRequest</p>
  </blockquote>
  
  <p>I'm just trying to create a simple request just to learn the basics of unirest but I'm not doing any good so far.</p>
  
  <p>Did I forgot to do something? Any suggestion will be welcomed. Thanks.</p>
  
  <p><strong>EDIT:</strong><br>
  This is the source code of the tutorial that I am following:</p>
  
  <pre><code>@Test
  public void shouldReturnStatusOkay() {
      HttpResponse&lt;JsonNode&gt; jsonResponse 
        = Unirest.get("http://www.mocky.io/v2/5a9ce37b3100004f00ab5154")
        .header("accept", "application/json").queryString("apiKey", "123")
        .asJson();
  
      assertNotNull(jsonResponse.getBody());
      assertEquals(200, jsonResponse.getStatus());
  }
  </code></pre>
  
  <p>Since the tutorial is using a method named <code>assertNotNull</code> and <code>assertEquals</code> which I can't figure out what they are, I simply replaced it with a print in hopes that I'll see how it responds.</p>
  
  <p>Also, I'm using this site as a mock web service I think. I don't if its useful to the problem but here it is:</p>
  
  <p><a href="https://www.mocky.io/" rel="nofollow noreferrer">https://www.mocky.io/</a></p>
  
  <p><strong>The whole error message I'm receiving:</strong><br></p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/concurrent/FutureCallback
      at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
      at MainMethod.main(MainMethod.java:10)
  Caused by: java.lang.ClassNotFoundException: org.apache.http.concurrent.FutureCallback
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 2 more
  </code></pre>