wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Exception while sending mail using javaee.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Exception while sending mail using javaee.jar" Watch "Exception while sending mail using javaee.jar" New topic
Author

Exception while sending mail using javaee.jar

VenuGopal Reddy P
Greenhorn

Joined: Sep 01, 2009
Posts: 9
Hi All,

I am trying to send mail from my java application using javaee.jar but i was not able to send any mail.I am getting the following exception.

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/BAS
E64EncoderStream
at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:793)
at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:757)

i have tried the same application by using mail.jar and activation.jar it is working fine.I would like to use javaee.jar.
Can you please do the needful.

Thanks,
Kitti
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
The javaee.jar file probably contains just the interfaces, but not the implementations. Use the mail.jar and activation.jar files instead.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

activation.jar should not be necessary anymore if you're using a Java 6 JVM. It has been moved into the core API starting at Java 6.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
VenuGopal Reddy P
Greenhorn

Joined: Sep 01, 2009
Posts: 9
Thanks for reply,
I am using myeclipse 6, where i have added java EE 5 libraries witch i required.If i add the mail.jar externally to the application, it calling the javaee.jar from java EE 5 libraries.It's not using the mail.jar.If i remove java EE 5 libraries then it is working, But i require java EE 5 libraries. How can i send mail using javaee.jar of java EE 5 library?.


Thanks,
Kitti
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3013
    
  35

"VenuGopal Reddy P" please check your private messages regarding an important administrative matter.


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception while sending mail using javaee.jar
 
Similar Threads
NoClassDefFoundError JavaMail..........
Not able to send mail using Servlet and JSP
Error in sending mail
SMTPAppender Error
Having Problem in sending mail