title: Android/Eclipse Error - "Could not find class 'org.jivesoftware.smack.ConnectionConfiguration', referenced from method"
body: <p>This is my first time working with Android/Java. I am trying to run this basic code and I keep getting the following error:</p>
  
  <p><strong>"Could not find class 'org.jivesoftware.smack.ConnectionConfiguration', referenced from method"</strong></p>
  
  <ul>
  <li><p><strong>My code:</strong></p>
  
  <pre><code>package message.pack;
  import org.jivesoftware.smack.ConnectionConfiguration;
  import org.jivesoftware.smack.XMPPConnection;
  import org.jivesoftware.smack.XMPPException;
  
  import android.app.Activity;
  import android.os.Bundle;
  
  public class ThesimpleigniteandroidActivity extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
      }
  
                public static void main(String[] args) {
                ConnectionConfiguration conf = new     ConnectionConfiguration("jabber.com",5222);
                XMPPConnection connection = new XMPPConnection(conf);
                    try {
                    connection.connect();
                    connection.login("myusername", "mypassword");
                    } catch (XMPPException e) {
                    e.printStackTrace();
                    } finally {
                            connection.disconnect();
                    }
                    }
                    }
  </code></pre></li>
  </ul>
  
  <p>I am using the smack.jar from this page: </p>
  
  <p><a href="http://vidorsolutions.blogspot.com/2011/01/writing-xmppjabber-chat-application-for.html?m=1" rel="nofollow">http://vidorsolutions.blogspot.com/2011/01/writing-xmppjabber-chat-application-for.html?m=1</a></p>
  
  <p>Can anyone tell me what I am doing wrong?</p>