dcsimg
Getting java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prakash_Karnam
Posted On:   Wednesday, May 19, 2004 05:25 AM

Hi, I am getting java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream for the following peace of code SMTPAppender smtpApp = new SMTPAppender(); smtpApp.setFrom("email@xyz"); smtpApp.setTo("email@xyz"); smtpApp.setSMTPHost("MAILSERVER"); smtpApp.setLocationInfo(true); smtpApp.setSubject("Testing"); smtpApp.setLayout(new PatternLayout()); smtpApp.activateOptions(); BasicConfigurator.configure(smtpApp); log.addAppender(smtpApp); Can anyone please let me know what is the problem? regrads    More>>

Hi,

I am getting


java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream

for the following peace of code


SMTPAppender smtpApp = new SMTPAppender();

smtpApp.setFrom("email@xyz");

smtpApp.setTo("email@xyz");

smtpApp.setSMTPHost("MAILSERVER");

smtpApp.setLocationInfo(true);

smtpApp.setSubject("Testing");

smtpApp.setLayout(new PatternLayout());

smtpApp.activateOptions();

BasicConfigurator.configure(smtpApp);

log.addAppender(smtpApp);


Can anyone please let me know what is the problem?


regrads
Prakash.

   <<Less

Re: Getting java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream

Posted By:   Benoit_Quintin  
Posted On:   Wednesday, May 19, 2004 11:52 AM

You don't have a jar that contains the class com.sun.mail.util.SharedyteArrayInputStream in your classpath.
About | Sitemap | Contact