Java code compiles but does not execute : "Could not find the main class"
<p>This concerns an attempt to run a network application. The code compiles correctly, however upon trying to run with "java SendMail" java returns :</p>

<pre><code>C:\Butte&gt;java SendMail
Exception in thread "main" java.lang.NoClassDefFoundError: SendMail (wrong name:
 je3/net/SendMail)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: SendMail.  Program will exit.
</code></pre>

<p>Is this a trivial configuration problem. I have a Java package recent enough to support other networking code. The source code is :</p>

<pre><code>package je3.net;
import java.io.*;
import java.net.*;

/**
 * this software sends e-mail via a mailto : url
 */

public class SendMail {
    public static void main(String[] args) {
        // --- SNIP ----
    }
}
</code></pre>

<p>Thank you very much, </p>

<p>Joel</p>
