![]() ![]() ![]() Import java.util.* import java.io.* import import import import import import import import .Message public class JabberSmackAPI implements MessageListener Now we have the Smack API included within our project, we can start to use the API.Ĭreate a new class called JabberSmackAPI and add the below code. Right click your project > Properties > Java Build Path > Add External Jars. If you use Eclipse you can follow these instructions: ![]() You now need to include these jar files into your project. Once you have the Smack API downloaded to your computer. To begin, download the Smack API from here: I am currently working on a bot which will take incoming commands from anyone in the office and in turn perform tasks such as querying a database and returning information. This opens up all kinds of possibilities. Using the Smack API we can build a Java application which works in the same way as these popular XMPP clients. A pure Java library, it can be embedded into your applications to create anything from a full XMPP client to simple XMPP integrations such as sending notification messages and presence-enabling devices. Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence.
0 Comments
Leave a Reply. |