powered by Jive Software

java.lang.ClassNotFoundException: org.jivesoftware.smack. ConnectionConfiguration

Hello~! first I can’t write English well. I am sorry. I have to study hard everything.

I have start to learn Smack. so I have downloaded smack api in my computer and maked a small sample program

like this

import java.io.*;

import java.util.*;

import org.jivesoftware.smack.*;

import org.jivesoftware.smack.ConnectionConfiguration;

class SampleCode


public static void main(String[] args)


System.out.println(“Hello Instant Messaging!”);

ConnectionConfiguration connConfig = new ConnectionConfiguration(“talk.google.com”, 5222, “gmail.com”);

XMPPConnection connection = new XMPPConnection(connConfig);




connection.login(“my id”, “password”);

}catch (Exception ex) {}

Roster roster = connection.getRoster();

Collection<RosterEntry> entries = roster.getEntries();

for (RosterEntry entry : entries)






and compiled but It is not working~ plz~ help me.

error message : java.lang.ClassNotFoundException: org.jivesoftware.smack.ConnectionConfiguration

Thank you. I have completed my problem.

Classpath was something wrong.

I did a stupid thing.

i have the same problem.

my classpath .;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar

javahome C:\Program Files\Java\jdk1.7.0_21

is there wrong ?