Classic error, NoClassDefFoundError
<p>Classic problem, NoClassDefFoundError what do I need? create new class?</p>

<pre><code>import java.net.*;
import java.io.*;
import org.xsocket.*;
import org.xsocket.connection.*;
import java.io.IOException;

public class SocketClient {
    public static void main(String[] args) {
        try {
            IBlockingConnection bc = new BlockingConnection("127.0.0.1", 8090);
            String req = "Hello server";
            bc.write(req + "\r\n");
        } catch (IOException e){}
            System.out.println("missing");
    }
}
</code></pre>

<p>I get the following exception:</p>

<pre>
C:\Users\Wildfire\Desktop>java -cp xSocket-2.8.14.jar SocketClient
Exception in thread "main" java.lang.NoClassDefFoundError: SocketClient
Caused by: java.lang.ClassNotFoundException: SocketClient
        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)
Could not find the main class: SocketClient.  Program will exit.
</pre>
