Classpath in Manifest
<p>I have download a xSocket.jar which will be use as a classpath and compile myprogram.jar, both are in Java folder.
Is adding a classpath in Manifest able to find xSocket.jar without the need to define a <code>-cp</code> in commandline?</p>

<p>In my commandline <code>D:\&gt;</code> location, I tried running <code>java -jar java\myprogram.jar -n 0</code></p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/xsocket/connectio
n/IBlockingConnection
        at myprogram.main(myprogram.java:114)
Caused by: java.lang.ClassNotFoundException: org.xsocket.connection.IBlockingCon
nection
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 1 more
</code></pre>

<p>My Manifest in myprogram.jar:</p>

<pre><code>Manifest-Version: 1.0
Created-By: 1.6.0_22 (Sun Microsystems Inc.)
Main-Class: myprogram
Class-Path: xSocket
</code></pre>
