• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Mail API and Exchange 2003

 
Hendrik van der Watt
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brilliant!!! Thanks, I have added the activation.jar to my classpath and the problem has been resolved.

Hendrik
 
dave dhaval
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i have full code of "Hendrik van der Watt"???
 
dave dhaval
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic