This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send Mail Error

 
ahmed elrouby
Greenhorn
Posts: 3
  • 0
  • 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
  • 0
  • 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: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic