JMail

2 respostas
andredeividi

Ae galera

email não vai quando a classe esta dentro do jar e no apache
quando mando ela executar direto do netbeans o email e enviado sem problema. ai esta o Exception

network: Connecting http://localhost/aginesMulti/javax/mail/internet/AddressException.class with proxy=DIRECT
Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
	at com.softin.aginesNetwork.gui.forms.pIndex.bCep2ActionPerformed(pIndex.java:474)
	at com.softin.aginesNetwork.gui.forms.pIndex.access$600(pIndex.java:28)
	at com.softin.aginesNetwork.gui.forms.pIndex$7.actionPerformed(pIndex.java:272)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

2 Respostas

T

Você não pôs os jars necessários no diretório adequado.

andredeividi

Eu crie uma pasta com nome lib dentro do meu projeto coloquei a api
jmail dentro e adicionei no claspath

ja verifiquei dentro do jar a existencia da pasta lib com o jar dentro tudo certo

é outra coisa.

desde ja agradeço

Criado 1 de setembro de 2006
Ultima resposta 1 de set. de 2006
Respostas 2
Participantes 2