Hello all,
I’'ve recently been getting really into the wildfire server and spark client. At work I am being asked to create a simple client for our site.
I have just started working with smack, but I am hitting a bit of a wall already… I have read the “Getting Started With Smack” and I am following it closely… now for some reason, it doesn’'t look like the connect method exists in the XMPPConnection object…
try
{
XMPPConnection connection = new XMPPConnection(server);
connection.connect();
}
catch(Exception e)
{
System.err.println(e.getMessage());
}
That is my code… and connect() is underlined as if it is an error with “the method connect is undefined for the type XMPPConnection” as the description.
Now I know this has got to be something simple (yes I have imported the XMPPConnection object) but I can’'t figure it out, and being so new to this stuff, I could really use a hand… anything you can give me would be a great help!
Thanks a lot!
–d