dcsimg
java.lang.NoClassDefFoundError: javax/activation/DataSource
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, July 16, 2002 03:36 PM

Hi ! I'm using PostCast Server2; the server's host is "blus" and port 25. this is part of my code : Properties p = new Properties(); p.put("mail.smtp.host", host); Session session = Session.getDefaultInstance(p, null); MimeMessage message = new MimeMessage(session); Address address = new InternetAddress ("blus113@yahoo.com"); when it gets to the last line, the following error appears : java.lang.NoClassDefFoundError: javax/activation/DataSource at mail.MainClass.main(MainClass.java:22) Exception in thread "main" i found an ex. provided by Sun, and i   More>>

Hi ! I'm using PostCast Server2; the server's host is "blus" and port 25.

this is part of my code :

Properties p = new Properties();

p.put("mail.smtp.host", host);

Session session = Session.getDefaultInstance(p, null);

MimeMessage message = new MimeMessage(session);

Address address = new InternetAddress
("blus113@yahoo.com");

when it gets to the last line, the following error appears :

java.lang.NoClassDefFoundError:

javax/activation/DataSource
at mail.MainClass.main(MainClass.java:22)

Exception in thread "main"

i found an ex. provided by Sun, and i get the same error

please help...

10x, Andrew

   <<Less

Re: java.lang.NoClassDefFoundError: javax/activation/DataSource

Posted By:   Eugene_Kuleshov  
Posted On:   Tuesday, July 16, 2002 04:59 PM

you should put the activation.jar into classpath or ext directory of your JRE. You can get it at http://java.sun.com/products/javabeans/glasgow/jaf.html
About | Sitemap | Contact