java - getting javax.mail.MessagingException -


I am using the javax.mail .jar file to read the mail message. But when IM is running then I'm getting the following exception.

I added mail.jar to classpath. Exception in the thread "main" java.lang.NoClassDefFoundError: Javax / mail / messagingE due to outgoing: java.lang.ClassNotFoundException: javax.mail.MessagingException at java.net.URLClassLoader $ 1 .run (unknown source) at java.security.AccessController Privileged on Java.net (basic method). URLClassLoader.findClass (unknown source) on java.lang.ClassLoader.loadClass (unknown source) at sun.misc.Launcher $ AppClassLoader.loadClass (unknown source) on Java.lang.ClassLoader.loadClass (unknown source)

Post-text "itemprop =" text ">

You are not getting any messaging exposure , VM is complaining that it find messaging one Suppressions can not (although this is probably searching because it wants to throw it, but these are the problems for later.)

Check if your mail is actually Includes this class, and check whether your mail.jar is really on the classpath or not.

The last thing may be that the class is incompatible with your version of Java. Compiled classes for 1.5 will not run at 1.4, for example.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -