error

when I compiled my code it compiled, but while executing the following error occured:Exception in thread "main" java.lang.NoClassDefFoundError:com/sun/mail/util/SharedByteArrayInputStreamSuggest me how to over come this error.
[247 byte] By [rajsam8283a] at [2007-11-26 16:38:33]
# 1
Incude mail.jar and activation.jar in your class path..and remove all other unwanted stuffs from your class path..regardsShanu
mshanua at 2007-7-8 23:05:22 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
You've probably got two versions of the JavaMail classes in your CLASSPATH.Perhaps two copies of mail.jar. Or perhaps the classes are included in someother jar file you're using.
bshannona at 2007-7-8 23:05:22 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...