e como vc resolveu o problema da biblioteca? � que tive um problema similar
Abs
Conrad Peres.
Gustavo Barroso <[EMAIL PROTECTED]> wrote:
Gustavo Barroso <[EMAIL PROTECTED]> wrote:
J� resolvi.... valew galera.....o problema era o .jar que cont�m a biblioteca javamail.[]�sGustavo Barroso----- Original Message -----From: Gustavo BarrosoSent: Wednesday, June 16, 2004 12:36 PMSubject: [JUG-Petro] E-MAIL com problemasPessoal, tenho o seguinte problema: Oq posso fazer pra resolver isso? VALEW
criei o seguinte m�todo:
======================= M�TODO =============================
public
static void sendEMail(String from, String to[], String subject, String file, Properties prop) throws MessagingException{
Properties properties = prop ==
null ? System.getProperties() : prop;Session session = Session.getInstance(properties,
null);Message message =
new MimeMessage(session); aqui est� o problemaInternetAddress fromAddress =
new InternetAddress(from);InternetAddress toAddress[] =
new InternetAddress[to.length]; for(int i = 0; i < to.length; i++) if(to[i] != null)toAddress[i] =
new InternetAddress(to[i]);sendEmail(message, fromAddress, toAddress, subject, file);
}
o erro gerado :
=================== ERRO ======================================
java.lang.NoClassDefFoundError: javax/activation/DataSource
at com.nexo.mail.MailUtils.sendEMail(MailUtils.java:27)
at com.nexo.mail.apps.sender.EMailSender.main(EMailSender.java:43)
Exception in thread "main"
=======================================================
Yahoo! Messenger - Fale com seus amigos online. Instale agora!
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/jug-petropolis/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
