title: Libraries to connect to Instant Messaging (IM) services like Yahoo , MSN, AIM through Java Program
body: <p>I am looking for some library that will help me connect to IM networks <strong>through a Java program.</strong> </p>
  
  <p>My requirement is as follows:</p>
  
  <ol>
  <li>User should be able to login,
  retrieve friend list, and able to
  send messages to his friends</li>
  <li>Messages should be delivered to
  offline friends too.</li>
  </ol>
  
  <p>I have done some research about lib-purple. But its not written in Java. Is there any Java wrapper available for the same, so that I can use it with a Java program ?? Or some libpurple plugin that can be used with an XMPP server ?? Or is there any other solution. </p>
  
  <p>Thanks
  Aneez</p>
  
  <p>PS: </p>
  
  <p>I have tried Openfire XMPP server in conjuction with the IM Gateway Plugin (also tried the Kraken IM Gateway Plugin too). It does not deliver offline messages to MSN and AIM friends (works fine for Yahoo and GTalk).</p>
  
  <p>I have also tried the following libraries and found that they too do not support message delivery to offline friends</p>
  
  <ul>
  <li>Java MSN Library</li>
  <li>jYMSG (for Yahoo)</li>
  <li>DAIM (for AIM)</li>
  </ul>