• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My First Try Of JavaMail - NoClassDefFoundError

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic