Caroline,
This is a classloader problem. For some reason mail.jar and activation.jar do not work with the extensions classloader which is used when you put the .jar files in the ext directory. (Classloading is a *very* complicated area, some people think that it really is the Achilles heel of Java.)
Put mail.jar and activation.jar explicitly in your classpath and everything will work.
BTW, when testing with msgsend you can use msgshow afterwards to see if your message arrived, like this 'java msgshow -L pop3://userid:[EMAIL PROTECTED]'.
Regards, jaj
Jens A. Jensen Sunway Software ApS
Caroline Jen wrote:
I have James-2.1.3 up and running. In another DOS window, I have successfully added two users: Gloria and John, to James-2.1.3.
On the JavaMail part, I placed the activation.jar and mail.jar in C:\j2sdk1.4.1_02\jre\lib\ext
In another DOS window, I compiled the program C:\javamail-1.3.1\demo>javac msgsend.java
When I tried to send message between James internal users for testing purpose:
C:\javamail-1.3.1\demo>java msgsend -o [EMAIL PROTECTED] -M smtp.localhost [EMAIL PROTECTED]
I got Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/message
What is the cause of the problem?
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
