Example for GoogleTalk with Smack 3.0.x

It should work with 3.0.2. There is no SASL or other security code because “maximum security will be used when connecting to the server by default (and when possible), including use of TLS encryption” according to the docs that come with Smack. It’'s in the smack_3_0_2/documentation/gettingstarted.html page. Try turning on the debugger by adding a new line to your main method:

public static void main( String[] args ) {
        XMPPConnection.DEBUG_ENABLED = true;
        .....
}