hraa2
Messages postés22Date d'inscriptionlundi 1 décembre 2003StatutMembreDernière intervention 7 octobre 2007
-
15 mai 2004 à 13:56
anisation
Messages postés1Date d'inscriptionjeudi 7 avril 2011StatutMembreDernière intervention20 avril 2011
-
20 avril 2011 à 16:35
Bonjour,
Je suis nouveau dans java et j'ai essayé de faire fonctionner ce code pour faire un envoi de mail.
kirua12
Messages postés1155Date d'inscriptionsamedi 17 janvier 2004StatutMembreDernière intervention29 avril 20117 16 mai 2004 à 11:32
il est fourni en standard dans la version Foundation.
Dans les propriétés du projet sur l'onglet 'required librairies' (ou l'équivalent français) tu fais 'add' puis tu cherches 'JavaBeans Activation Framework'
mchmarkh
Messages postés1Date d'inscriptionjeudi 14 mai 2009StatutMembreDernière intervention21 avril 2010 21 avril 2010 à 17:46
bonjours
j'ai exécute votre code sous Eclips
mais,une erreur me bloque :
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems:
Access restriction: The constructor Provider() is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\jsse.jar
Access restriction: The type Provider is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\jsse.jar
at MailSender.(MailSender.java:47)
int addProvider = Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
at SendMail.envoyer_Email(SendMail.java:250)
MailSender mail =new MailSender("mail.noos.fr",465
,jTextField.getText(),jPasswordField.getText(),true);
at SendMail.access$2(SendMail.java:239)
private void envoyer_Email()
at SendMail$2.actionPerformed(SendMail.java:230)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)