• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax/mail/Messaging Exception

 
hong zhang
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
run time error: Noclass DefFound Error javax/mail/Messaging Exception.
Here's more info:
I use tomcat 3.2.1.
The classpath is to use classes12.zip.
The servlet import javax.mail.*
It runs fine when the classpath set to use classes111.zip. However got above error when set tuo use classes12.zip.
What things I am missing? Please give me some help here.
Thanks much in advance.
 
sanj singh
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hong
Have you got mail.jar and activation.jar files in ur classpath?If not then make sure they r in ur classpath.
regards
sanj
 
hong zhang
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sanj,
Thank you very much!
After I add the two jars in my classpath, it worked!
Thanks again.
Hong
Originally posted by sanj singh:
Hi Hong
Have you got mail.jar and activation.jar files in ur classpath?If not then make sure they r in ur classpath.
regards
sanj

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic