I am attempting to login to my jabberd server via Smack. I can connect to the server via the following line of code:
XMPPConnection connection = new XMPPConnection(IPAddress, Port);
But when i try to log a user onto the server using the following line of code, it does not log the user on:
i have tried registering the user via the JabberIM client prior to attempting this but it does not work, not even when i try to use an unregistered username and password.
The smack jar file is correctly imported and sitting in the classpath. the code compiles ok.
Where am i going wrong? Any help greatly appreciated.