title: getting javax.mail.MessagingException
body: <p>I am using javax.mail .jar file to read the mail messages. But when i m running the code i am getting the following exception.</p>
  
  <p>I added mail.jar in classpath.</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingE
  xception
  Caused by: java.lang.ClassNotFoundException: javax.mail.MessagingException
          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: MasterProcess.  Program will exit.
  </code></pre>
  
  <p>any suggetionsn to solve this issue please ...</p>