title: NoClassDefFoundError even though the JAR's are included in Manifest Class-Path
body: <p>Following is the manifest file of a jar I created.</p>
  
  <pre><code>Manifest-Version: 1.0
  Archiver-Version: Plexus Archiver
  Built-By: Arun
  Class-Path: lib/httpclient-4.5.1.jar lib/httpcore-4.4.3.jar lib/c
   ommons-logging-1.2.jar lib/commons-codec-1.9.jar lib/httpmime-4.5.1.j
   ar lib/json-simple-1.1.1.jar lib/junit-4.10.jar lib/hamcrest-core-1.1
   .jar
  Created-By: Apache Maven 3.3.3
  Build-Jdk: 1.8.0_72
  Main-Class: org.wso2.ml.driver.Shell
  </code></pre>
  
  <p>Although the Class-Path entry shows that it has added necessary jars in the lib folder of the jar, when I run this executable jar I get a Noclassdeffound error.</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/entity/mime/content/ContentBody
  </code></pre>
  
  <p>This is how I execute my jar</p>
  
  <pre><code>java -jar restclient-1.0-SNAPSHOT.jar
  </code></pre>