import com.moyosoft.exchange.*;
public class HelloExchange
{
public static void main(String[] args) throws ExchangeServiceException
{
// To provide hostname and credentials information, use:
// Exchange exchange = new Exchange("hostname", "username", "password");
Exchange exchange = ExchangeConnectionDialog.display();
if(exchange == null)
{
return;
}
System.out.println("Hello Exchange version " +
exchange.getExchangeVersion());
}
}