title: Unirest no class found error
body: <p>I'm trying to use the unirest library to make some requests, but when I try to use it I get the following error:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoClassDefFoundError:
    org/apache/http/HttpRequest   at
    java.base/java.lang.ClassLoader.defineClass1(Native Method)   at
    java.base/java.lang.ClassLoader.defineClass(Unknown Source)   at
    java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
      at
    java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown
    Source)   at
    java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown
    Source)   at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
      at java.base/java.lang.ClassLoader.defineClass1(Native Method)  at
    java.base/java.lang.ClassLoader.defineClass(Unknown Source)   at
    java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
      at
    java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown
    Source)   at
    java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown
    Source)   at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
      at java.base/java.lang.ClassLoader.defineClass1(Native Method)  at
    java.base/java.lang.ClassLoader.defineClass(Unknown Source)   at
    java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
      at
    java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown
    Source)   at
    java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown
    Source)   at
    java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown
    Source)   at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
      at
    com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
      at incandescent.Interface.main(Interface.java:14) Caused by:
    java.lang.ClassNotFoundException: org.apache.http.HttpRequest     at
    java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown
    Source)   at
    java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown
    Source)   at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
      ... 29 more</p>
  </blockquote>
  
  <p>I did imported the required libraries to my path in Eclipse as the following printscreen shows:</p>
  
  <p><a href="https://i.stack.imgur.com/na2Hl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/na2Hl.png" alt="enter image description here"></a></p>
  
  <p>Thanks everyone!</p>