Have you also insert the package in your classpath? or the package are in
the servelet directory?

Rinaldo
[EMAIL PROTECTED]

-----Messaggio originale-----
Da: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]Per conto di
Mamadou Bobo Sylla
Inviato: venerd� 8 giugno 2001 10.28
A: [EMAIL PROTECTED]
Oggetto: NoClassDefFoundError with my servlet


I am writing an application in servlet.
And there are certain functions I need to use in most of the classes I am
writing.
To avoid including the whole code of those functions in my classes each time
I need them,I have decided to create a package where I am including the
classes containing those function.

One of the class of my package is SendMail.
I m calling SendMail class inside Registration class.I can compile both
classes.But when I run the Registration class  I receive the error message
NoClassDefFoundError javax/mail/Session.
I had set my classpath to mail.jar and to activation.jar.....those settings
are fine since I am able to send email when I include the whole code of
SendMail inside Registration class.

I wonder what is wrong with my settings.

Please I need your help.
Thank you in advance

Bobo

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to