[SOLVED] Could not find the main class: error...
OK, one more thing... I hope.
Sometimes I just feel helpless...
I compiled my little program with netbeans. I than ran it with netbeans and everything is perfect. However, when I want to run it from the command prompt, it spazes out on me! So, I tried compiling it from the command line, but I get the same error when I attempt to run it...
This is what I get:
Code:
bob@GeorgeJr:~/Programming/java/NetBeans/SendMail/build/classes$ java SendMail
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingException
Caused by: java.lang.ClassNotFoundException: javax.mail.MessagingException
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)
Could not find the main class: SendMail. Program will exit.
bob@GeorgeJr:~/Programming/java/NetBeans/SendMail/build/classes$
This error makes no sense to me. I don't know where even to begin on decoding this error...
Once again, I thank you for your help!