Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

My First Try Of JavaMail - NoClassDefFoundError  RSS feed

JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. I placed the activation.jar and mail.jar in
2. I compiled the program C:\javamail-1.3.1\demo>javac
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!