How to get started with babbler

Issue #109 closed
Former user created an issue

This is not an issue but rather a starting problem that I am having with babbler due to my short programming experience. I wanted to build a java based xmpp client that can set up an xmpp chat with a server called ejabberd. I acme across babbler in the process and found the getting started link on this site.

I wrote one line of code on Eclipse IDE and faced errors as below:

public class Test {

    public Test() {
        // TODO Auto-generated constructor stub
        XmppClient xmppClient = XmppClient.create("casino.com");
    }

}

error: XmppClient cannot be resolved to a type

So can you actually guide me how to start using babbler please

Comments (5)

  1. Christian Schudt repo owner

    You have to have the jar file(s) which contain the classes you need (here XmppClient) on the classpath. This should be set in eclipse for your project. Second, you need the Java import statement.

  2. Blacklightknight

    yes Thank you for replying. I found the documentation of how to use babbler here and in the build section I found out how to use babbler and now I have started with babbler. I just wanted to say this thing: I wrote a simple program following your guide about how make different users log in. so far it was going good when I realized that the clients were having a large number appended to their Jids like this

    user1@domain/15105196357483185858901
    

    and I wasn't sure what was it because when I was using a ready made client before named PIDGIN i didn't saw this number there. So I am now wondering where to look for it. And I would really like to know if you have a mailing list for babbler or not, where you know starters like me can share and learn a thing or two.

  3. Christian Schudt repo owner

    I guess the number is assigned by your server. Every session has one. It's called the "resource". You can assign your own string in one of the login methods (after username, password).

    The mailing list is linked on the start page: http://groups.xmpp.rocks

  4. Log in to comment