• 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

Java Mail API and Exchange 2003

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am trying to retrieve email from an Exchange 2003 server using pop3 protocol. I can login with the domain user and open the mailbox, even retrieve how many message it contains, but when I try and retrieve the messages from the folder I get java.lang.NoClassDefFoundError: javax/activation/DataSource.



If anyone else have encountered this problem and managed to resolve it please assist.

Thanks

Hendrik
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Search for and incluse the activation.jar on your classpath.

The JavaRanch forum is for conversations relating to the JavaRanch site. This topic will be moved to the Other Java APIs forum.

Dave
 
Hendrik van der Watt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Brilliant!!! Thanks, I have added the activation.jar to my classpath and the problem has been resolved.

Hendrik
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to fetch mails from mailserver 2003 using JAVA swing can any one help to make me such programme?
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many JavaMail tutorials available; at my job I have bookmarks to articles on Javaworld and jGuru. But keep in mind that the MAPI protocol is not easy to use since it is a Microsoft proprietary protocol. Your Exchange mailbox should support either IMAP or POP3. If it doesn't you should contact your system administrator.
 
dave dhaval
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can i have full code of "Hendrik van der Watt"???
 
dave dhaval
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to retrieve email from an Exchange 2003 server,so which protocol can I use and can you help me in coding of that just as "Hendrik van der Watt " has done???
 
Rob Spoor
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

dave dhaval wrote:can i have full code of "Hendrik van der Watt"???


No. We are NotACodeMill. You should DoYourOwnHomework. But you're in luck, I'm at my job now so I have my shortcuts. Here they are:
- JavaMail quick start @ Javaworld.com.
- Fundamentals of the JavaMail API @ jGuru
 
Rob Spoor
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

dave dhaval wrote:so which protocol can I use


I already told you to use IMAP or POP3, didn't I?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic