File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Send Mail Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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: 17234
    
    1

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Send Mail Error
 
Similar Threads
NoClassDefFoundError JavaMail..........
simple javamail example getting error
Java Mail problem
Javamail error
japanese character as junk