Re: Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingException
Posted By:
Jean_Hernandez
Posted On:
Friday, July 2, 2004 08:48 AM
Hi bob burns, your problem is in the execution of your code.
javac -cp %CLASSPATH% Test.java
java -cp . Test
Is the solution of the message Exception in thread "main"
java.lang.NoClassDefFoundError: ...
Is you have other question about this problem please let me
know.
Thank, Saludos.
Re: Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingException
Posted By:
Sean_Owen
Posted On:
Thursday, June 3, 2004 07:16 AM
Your run-time classpath still doesn't include the javax.mail.MessagingException class, so I bet you don't have mail.jar in the classpath. You'll have to double-check your classpath settings. Typically, either you set your classpath in a "CLASSPATH" variable, or you pass them to java's -cp flag.