aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Java Mail API and Exchange 2003 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Mail API and Exchange 2003" Watch "Java Mail API and Exchange 2003" New topic
Author

Java Mail API and Exchange 2003

Hendrik van der Watt
Greenhorn

Joined: Jun 07, 2005
Posts: 3
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

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Jun 07, 2005
Posts: 3
Brilliant!!! Thanks, I have added the activation.jar to my classpath and the problem has been resolved.

Hendrik
dave dhaval
Greenhorn

Joined: Mar 27, 2010
Posts: 3
I am trying to fetch mails from mailserver 2003 using JAVA swing can any one help to make me such programme?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
dave dhaval
Greenhorn

Joined: Mar 27, 2010
Posts: 3
can i have full code of "Hendrik van der Watt"???
dave dhaval
Greenhorn

Joined: Mar 27, 2010
Posts: 3
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

Joined: Oct 27, 2005
Posts: 19693
    
  20

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

Joined: Oct 27, 2005
Posts: 19693
    
  20

dave dhaval wrote:so which protocol can I use

I already told you to use IMAP or POP3, didn't I?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Mail API and Exchange 2003