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 Exception trying to compile and run JavaMail App 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 "Exception trying to compile and run JavaMail App" Watch "Exception trying to compile and run JavaMail App" New topic
Author

Exception trying to compile and run JavaMail App

Michael K. Wilson
Ranch Hand

Joined: Apr 23, 2008
Posts: 45
I am using JDK 1.5, JavaMail 1.4, and the Java Activation Framework (downloaded from Sun)...

Am trying to get this sample app to work and it keeps throwing an exception!





I have mail.jar and activation.jar in my CLASSPATH so I don't understand what the problem is...

-Mike
Michael K. Wilson
Ranch Hand

Joined: Apr 23, 2008
Posts: 45
Figured it out...

I am using MyEclipse for my development environment and for web enabled projects it contains a jar file called javaee.jar (which is bundled with mail.jar and activation.jar).

When I tried to use these particular jars, it didn't work... Resulting in me having to remove javaee.jar and manually place mail.jar and activation.jar on MyEclipse's build path.

-Mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception trying to compile and run JavaMail App
 
Similar Threads
how to send mail using gmail server
Send jsp page in mail as attachment
JavaMail API error
How to send mail to more than one recipients
Email: java.lang.ClassFormatError