This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes My First Try Of JavaMail - NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "My First Try Of JavaMail - NoClassDefFoundError" Watch "My First Try Of JavaMail - NoClassDefFoundError" New topic
Author

My First Try Of JavaMail - NoClassDefFoundError

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
JavaMail:
1. I placed the activation.jar and mail.jar in
C:\j2sdk1.4.1_02\jre\lib\ext
2. I compiled the program C:\javamail-1.3.1\demo>javac msgsend.java
SMTP Server: I downloaded James-2.1.3
1. James-2.1.3 is up and running because the messages shown below are
in the console
Using PHOENIX_HOME: F:\dev\james-2.1\james-2.1
Using PHOENIX_TMPDIR: F:\dev\james-2.1\james-2.1\temp
Using JAVA_HOME: F:\system\jdk\1.4.2
Phoenix 4.0.1
James 2.1
Remote Manager Service started plain:4555
POP3 Service started plain:110
SMTP Service started plain:25
NNTP Service Disabled
Fetch POP Disabled
2. I successfully added two users: Caroline and John to James-2.1.3

When I tried to send a message for testing purpose:
C:\javamail-1.3.1\demo>java msgsend -o John@localhost -M smtp.localhost Caroline@localhost
I got Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/message
Please help me in fixing the problem.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: My First Try Of JavaMail - NoClassDefFoundError
 
Similar Threads
James Server Installation
Java Mail
Mail server on localhost
javamail problems
JavaMail and Server