dcsimg
NoClassDefFoundError
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   James_McGovern
Posted On:   Tuesday, March 18, 2003 06:21 AM

Hi,
Im trying to run the basic JavaMail examples at the java.sun website
msgsend.java and MailExample.java
but am constantly getting the following error
"exception in thread 'main' java.lang.NoClassDefFoundError"
the files compile fine when I try to execute this error shows.Any thoughts

http://developer.java.sun.com/developer/onlineTraining/JavaMail/exercises/MailSending/


msgsend.java is in the demo directory of the javamail instillation.
Thanks

Re: NoClassDefFoundError

Posted By:   Joost_Schouten  
Posted On:   Tuesday, March 18, 2003 08:43 AM

have you set the CLASSPATH directory to find your javaMail jar file? Or place the jar in a directiory that is already known to the CLASSPATH.


Cheers

Joost

About | Sitemap | Contact