Question: How do I install/use the Smack API?

I downloaded the Smack API, and I don’'t know how to use it. For example, I wrote this simple program:

public class SimpleSmackProgram {

public static void main(String[] args) {

XMPPConnection conn1 = new XMPPConnection(“jabber.org”);

}

}

What do I have to do so I can compile and run this? What do I have to do with the “smack.jar” file?

I have never used an API before, so can someone please help me? Thank you in advance.

Add smack.jar to your classpath (you can do it on the command line with -CP option)

Could you clarify what I have to write in the command-line for this to work? I’'m running Windows XP and I have JDK 1.5.0_09.

do you use the eclipse?

I have Eclipse 3.2.1 installed, which I can use.

So how would I get my simple program running in Eclipse 3.2.1 on Windows?