Vague Error: java.lang.NoClassDefFoundError
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lee_Juan
Posted On:   Sunday, September 1, 2002 06:17 AM

I have tested 2 codes to send mail using javamail and both of it produce similar errors. The first code error is
java.lang.NoClassDefFoundError: javax/mail/Session
The second one is
java.lang.NoClassDefFoundError: proj/MailerBean
I already put the mail.jar and jaf.jar files into the server/lib dir and even in the jdk lib directory.
I don't know what is the problem?

Re: Vague Error: java.lang.NoClassDefFoundError

Posted By:   AlessandroA_Garbagnati  
Posted On:   Sunday, September 1, 2002 09:39 AM

Hi,

java.lang.NoClassDefFoundError occurs when a class cannot be found. If you are developing a web application, you should follow the specifications and put the jar files in the right directories: WEB-INF/lib.
About | Sitemap | Contact