dcsimg
it is compiling but not running...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Naveen_Sharma
Posted On:   Monday, August 28, 2006 08:22 AM

hi..i tried to run a programme given at javamail- 1.4/demo/msgsend.java .i compiled it successfully but got a runtime error as given below: D:Userssharmaj2ee>java msgsend To: naveen@teraltd.com Subject: Hi Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/Sha redByteArrayInputStream at msgsend.main(msgsend.java:145) i have tried it out with j2ee server 1.5 and also since this class has been written by sun so i don't have any doubt with it. please help me out.    More>>

hi..i tried to run a programme given at javamail-
1.4/demo/msgsend.java .i compiled it successfully but
got a runtime error as given below:


D:Userssharmaj2ee>java msgsend

To: naveen@teraltd.com

Subject: Hi

Exception in thread "main" java.lang.NoClassDefFoundError:

com/sun/mail/util/Sha

redByteArrayInputStream

at msgsend.main(msgsend.java:145)


i have tried it out with j2ee server 1.5 and also


since this class has been written by sun so i don't have
any doubt with it.

please help me out.

   <<Less

Re: it is compiling but not running...

Posted By:   Byron_Tymvios  
Posted On:   Monday, August 28, 2006 09:23 AM


Do you have the activation.jar file on your pc? And is it on your classpath. JavaMail requires this to work.

About | Sitemap | Contact