Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError  RSS feed

 
naresh govindaswmay
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am new to java mail api.I am getting this exception while running the program java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport.
i have setted the class path for activation.jar and mail.jar.here i am using the JBOSS 3.2.6 please help me out of this.

i have did the same program as Sevlet that time it is running corrctly with out throwing any exception at all.

please find the senerio and help me out of this.


Thanks and Regards
Naresh
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You might have the mail and activation classes in 2 different jars in the application classpath. There is a chance that both j2ee.jar and (mail.jar & activation.jar). The versions are different - it was using the javax.mail classes from j2ee.jar. So please do a search in all your jars for the file MailcapCommandMap.class and identify the wrong version.

Hope this helps...

Thanks,
Shriniwas
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!