test javamail file

Y

yihan

Hello,
I added mail.jar and activation.jar into CLASSPATH, and compile msgsend.java
successfully. But
when I input
[prompt] java msgsend -o from@address -M SMTP.Server to@address
under dos. SMTP.Server is replaced by 130.232.80.15 (My mail server IP). It
comes error:
Execption in thread "main" java.lang.NoClassDefFoundError:
javax/mail/Message

Can anybody tell me how to solve it? Thank you.

Zhao
 
A

Andy Fish

sounds like you don't have the classpath set correctly when running the
program (you need to include the same javamail jars as when compiling)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top