Jingle using smack

this code is from JingleManager documentation

https://www.igniterealtime.org/builds/smack/docs/4.0.6/javadoc/org/jivesoftware/ smackx/jingle/JingleManager.html

i’ve tried these lines of code

** XMPPConnection x1 = new XMPPTCPConnection(“xmpp.com”);**
** x1.connect();* //error here: cant resolve connect
** x1.login(“juliet”, “juliet”);
//error here: cant resolve login*

** // Create a JingleManager using a BasicResolver**
** final JingleManager jm1 = new JingleManager(**
** x1, new BasicTransportManager());** // error here: arguments not matching, Abstract class BasicTransportManager cant be initialised

giving erros from second line itself

please hellp me!!!

im praying