• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem when use javamail in swing

 
ben lin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear all:
sorry to bother you...
when i use javamail in my program,i encounted this problem,but i am very sure javax/activation/DataSource exist....
the error is list here....could someone give me some advise?
thank you so much..
Best Regards..
Ben
*.)-----------------------------------------
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: javax/activation/DataSource
at automall.java.database.epaperPanel.sendmail(epaperPanel.java:230)
at automall.java.database.epaperPanel.bsend_actionPerformed(epaperPanel.java:199)
at automall.java.database.epaperPanel$3.actionPerformed(epaperPanel.java:74)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
at java.awt.Component.processMouseEvent(Component.java:3717)
at java.awt.Component.processEvent(Component.java:3546)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl(Component.java:2595)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2499)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
at java.awt.Container.dispatchEventImpl(Container.java:1200)
at java.awt.Window.dispatchEventImpl(Window.java:912)
at java.awt.Component.dispatchEvent(Component.java:2499)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
 
ben lin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi...
the epaperPanel.java:230 is this....
MimeMessage msg = new MimeMessage(sess);
thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!