java.lang.NoClassDefFoundError: BoothServer
<p>I'm following this tutorial <a href="http://stilius.net/java/java_ssl.php" rel="nofollow">http://stilius.net/java/java_ssl.php</a> to create simple SSLServer and client sockets. I've created the certificate using keytool but I've a problem executing this line from the above tutorial, </p>

<p>"java -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=123456 EchoServer".</p>

<p>Where should I put the certificate? in project directory?
how can I pass the parameters mentioned above?</p>

<p>I'm doing this and getting error;</p>

<pre><code>C:\Users\abc\workspace\VirtualElectionBoothServer\bin&gt;java -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=123456 BoothServer
    Exception in thread "main" java.lang.NoClassDefFoundError: BoothServer
Caused by: java.lang.ClassNotFoundException: BoothServer
        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:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: BoothServer.  Program will exit.
</code></pre>

<h2>Edit:</h2>

<p>my problem is that I never run a project from command line so I don't know how to run this line from command line;</p>

<pre><code>C:\Users\abc\workspace\VirtualElectionBoothServer\bin&gt;java -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=123456 BoothServer
</code></pre>

<p>From which directory should i run it? I've more than one .java files. which one to run? one having main()?</p>
