Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Java Mail exception.

Thread view: 
alan_conoco@hotmail.co.uk - 13 Jun 2006 15:32 GMT
Hi,

i am new to javamail and am having problems getting a simple example
working.

the following snippet of code compiles ok....

MimeMessage msg = new MimeMessage(session);

.... but throws the exception printed below.

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/activation/DataSource

i'm confused because i couldnt find any reference to a javax.activation
package in any docs.

any help appreciated!

Alan
alan_conoco@hotmail.co.uk - 13 Jun 2006 15:58 GMT
problems solved!

Alan

> Hi,
>
[quoted text clipped - 16 lines]
>
> Alan
Thomas Weidenfeller - 13 Jun 2006 15:59 GMT
> .... but throws the exception printed below.
>
[quoted text clipped - 3 lines]
> i'm confused because i couldnt find any reference to a javax.activation
> package in any docs.

Sure?

From the JavaMail NOTES.txt file:

> Your problem:   javax.mail or javax.activation classes not found when compiling.
> Our response:   You didn't set CLASSPATH correctly to find mail.jar and
>                 activation.jar.  See README.txt.

From the JavaMail README.txt file:

> Requirements
> ------------
[quoted text clipped - 6 lines]
>
> and install it in a suitable location.

From the JavaMail product page
http://java.sun.com/products/javamail/index.jsp

> Note: You will also need the JavaBeans Activation Framework (JAF) extension that provides the javax.activation package. We suggest you use version 1.1 of JAF, the latest release.

So much for no references in any docs ...

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.