You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Caroline Jen <ji...@yahoo.com> on 2004/09/17 19:54:42 UTC

Please Help With the 'msgsend' Tutorial

I am trying the JavaMail tutorial at 
http://java.sun.com/developer/onlineTraining/JavaMail/contents.html

I got this error message at runtime: Exception in
thread "main" java.lang.NoClassDefFoundError: msgsend

I compiled the msgsend.java and the msgsend.class is
under the C:\javamail-1_3_1-upd\javamail-1.3.1\demo
directory.

This is what I have done (I am using the j2sdk1.4.2
and Windows XP):

1. donloaded the latest versions of javamail api i.e.
javamail-1_3_1-upd.zip
2. downloaded the java activation framework
jaf-1_0_2-upd.zip
3. unzipped both the files and added the
activation.jar and mail.jar in the
C:\j2sdk1.4.2\jre\lib\ext
4. put j2ee.jar explicitly in the classpath (I
configured the System Properties of my Computer and
put C:\Sun\AppServer\lib\j2ee.jar in the CLASSPATH)
5. at the DOS C:\> prompt, I typed
PATH=C:\j2sdk1.4.2\bin <enter>
6. then compiled the program 
C:\javamail-1_3_1-upd\javamail-1.3.1\demo\>javac
msgsend.java 
7. the file was compiled
8. then tried to run the 'msgsend'
C:\javamail-1_3_1-upd\javamail-1.3.1\demo>java msgsend
-o jenc-c@MyCompanyName.org -M
131.167.241.117.milky-way.smtp.MyCompanyName.org
jiapei_jen@yahoo.com

where 131.167.241.117 is my machine name.

Please help. 


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org