problem with MANIFEST.MF in jar
<p>I have created my jar file in the following folder: </p>

<blockquote>
<pre><code>/usr/local/bin/niidle.jar
</code></pre>
</blockquote>

<p>And I have one jarfile which is in the following folder</p>

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

<p>And this file 'hector-0.6.0-17.jar' I have to include in MANIFEST.MF in jar.</p>

<p>And when I mention class path in MANIFEST.MF as follows:</p>

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

<p>When I run this using command:</p>

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

<p>It works properly..</p>

<p>But I dont want to give full Class-Path name, I have to give Class-Path as follows:</p>

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

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

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

<p>It is showing error message:</p>

<blockquote>
<pre>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</pre>
</blockquote>

<p>Please tell me solution for that...</p>
