This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Send Mail Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Send Mail Error" Watch "Send Mail Error" New topic
Author

Send Mail Error

ahmed elrouby
Greenhorn

Joined: Oct 31, 2004
Posts: 3
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

Joined: Apr 14, 2004
Posts: 10336

Check your classpath, specifically for mail.jar (or J2EE.jar).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Moving this ot the Other Java Api forum.

This forum is for Servlet questions only.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Send Mail Error
 
Similar Threads
NoClassDefFoundError JavaMail..........
japanese character as junk
simple javamail example getting error
Java Mail problem
Javamail error