• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send Mail Error

 
ahmed elrouby
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
i try to send mail using javax.mail package
but there is an exception that is

java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream
at SendApp.send(SendApp.java:20)
at SendApp.main(SendApp.java:53)
Exception in thread "main"

this is my code



[Code tags added, toned down the title - Dave]
[ October 24, 2005: Message edited by: David O'Meara ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your classpath, specifically for mail.jar (or J2EE.jar).
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this ot the Other Java Api forum.

This forum is for Servlet questions only.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic