you have to set the classpath of your mail.jar
and activation.jar
file like that:
open the command prompt:
c:\user>set classpath=%classpath%;d:\jarfiles\mail.jar;d:\jarfiles\activation.jar;.;
and if u don't have the both file then please download them here