Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Help!!! JavaMail setting problem


Message #1 by "Hwang, B.K." <hwang23@s...> on Fri, 11 May 2001 05:57:15
Hi, all...

Using jdk1.3/jsdk2.1/javamail_1.2, I'm testing my mail-sending servlet.

I set some jar files(mail.jar, activation.jar) to my clsspath in jdk1.3 
folder, and compiled sample sources of downloadable javamail zip.
When I ran the servlets in browser, I encountered this error message.

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


This is my source.
=============================================================
...
java.util.Properties properties = System.getProperties();

properties.put("mail.smtp.host", smtpHost);
Session session = Session.getInstance(properties, null);
			
MimeMessage message = new MimeMessage(session); <== This Line!!!
...
=============================================================

I don't think this is a problem of source.

Please, somebody tell me how to use javamail.

Thank...

  Return to Index