problem related to MANIFEST.MF in jar
<p>I have created jar in folder /usr/local/bin/niidle.jar.</p>

<h2>And I have cerated MANIFEST.MF in jar as follows:</h2>

<pre><code>Manifest-Version: 1.0
Main-Class: com.ensarm.niidle.web.scraper.NiidleScrapeManager
Class-Path: hector-0.6.0-17.jar
</code></pre>

<hr>

<p>And my 'hector-0.6.0-17.jar' file is present in following folder:</p>

<pre><code>/Projects/EnwelibDatedOct13/Niidle/lib/hector-0.6.0-17.jar
</code></pre>

<hr>

<p>And I have added this 'hector-0.6.0-17.jar' in niidle.jar folder as follows:</p>

<pre><code>niidle.jar/lib/hector-0.6.0-17.jar
</code></pre>

<hr>

<p>And when I run this using command:</p>

<pre><code>java -jar /usr/local/bin/niidle.jar arguments....
</code></pre>

<hr>

<p>then I am getting error message as follows:</p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: me/prettyprint/hector/api/Serializer
    at com.ensarm.niidle.web.scraper.NiidleScrapeManager.main(NiidleScrapeManager.java:21)
Caused by: java.lang.ClassNotFoundException: me.prettyprint.hector.api.Serializer
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 1 more
</code></pre>

<hr>

<p>And When I run again using different command as follows:</p>

<pre><code>java -cp /Projects/EnwelibDatedOct13/Niidle/lib/hector-0.6.0-17.jar -jar /usr/local/bin/niidle.jar arguments..... 
</code></pre>

<p>---------------Then also I am getting the same error message:--</p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: me/prettyprint/hector/api/Serializer
    at com.ensarm.niidle.web.scraper.NiidleScrapeManager.main(NiidleScrapeManager.java:21)
Caused by: java.lang.ClassNotFoundException: me.prettyprint.hector.api.Serializer
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 1 more-------------
</code></pre>

<hr>

<p>so tell me what is solution for that.or any modification in MANIFEST.MF in jar</p>
