I got the same question like m33p
I found an older threat dealing with a login method … but couldn’‘t reply there so here’'s the new threat.
My code snippet is as following:
package Chat;
import org.jivesoftware.smack.*;
public class Login {
public static void main(String[] args) {
try {
XMPPConnection connection = new XMPPConnection(“jabber.org”, 5222);
connection.login(“m33p”,“m33p666”);
} catch (Exception e) {
System.out.println("Failed : " + e);
}
}
}
Failed : SASL authentication failed: