Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8070573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:25:43+00:00 2026-06-05T13:25:43+00:00

hi friends i m using this tutorial http://xjaphx.wordpress.com/2012/02/04/android-xml-adventure-parsing-html-using-jsoup/ and after i implemented this code

  • 0

hi friends i m using this tutorial http://xjaphx.wordpress.com/2012/02/04/android-xml-adventure-parsing-html-using-jsoup/ and after i implemented this code my application has been stopped i dont know why plz suggest me thanks in advance

06-12 17:35:29.912: E/AndroidRuntime(1250): FATAL EXCEPTION: main
06-12 17:35:29.912: E/AndroidRuntime(1250): java.lang.NoClassDefFoundError: org.jsoup.Jsoup
06-12 17:35:29.912: E/AndroidRuntime(1250): at your.packag.namespace.JsopuexampleActivity.getBlogStats(JsopuexampleActivity.java:33)
06-12 17:35:29.912: E/AndroidRuntime(1250): at your.packag.namespace.JsopuexampleActivity.onCreate(JsopuexampleActivity.java:24)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.app.Activity.performCreate(Activity.java:4465)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.app.ActivityThread.access$600(ActivityThread.java:123)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.os.Handler.dispatchMessage(Handler.java:99)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.os.Looper.loop(Looper.java:137)
06-12 17:35:29.912: E/AndroidRuntime(1250): at android.app.ActivityThread.main(ActivityThread.java:4424)
06-12 17:35:29.912: E/AndroidRuntime(1250): at java.lang.reflect.Method.invokeNative(Native Method)
06-12 17:35:29.912: E/AndroidRuntime(1250): at java.lang.reflect.Method.invoke(Method.java:511)
06-12 17:35:29.912: E/AndroidRuntime(1250): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
06-12 17:35:29.912: E/AndroidRuntime(1250): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
06-12 17:35:29.912: E/AndroidRuntime(1250): at dalvik.system.NativeStart.main(Native Method)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:25:44+00:00Added an answer on June 5, 2026 at 1:25 pm

    I am pretty sure there is jar issue.

    Do following.

    create a folder in the “root” of the app heirarchy (alongside src, gen, etc) called “libs”, and put jar file there. When you clean / build and re-launch the app, the error should go away.

    Below is correct code.

    package org.sample;
    
    import java.io.IOException;
    
    import org.jsoup.Jsoup;
    import org.jsoup.nodes.Document;
    import org.jsoup.select.Elements;
    
    import android.app.Activity;
    import android.os.Bundle;
    import android.widget.TextView;
    
    public class Hello extends Activity {
    
        final String BLOG_URL = "http://xjaphx.wordpress.com/";
        private String result;
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            // set layout view
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
            getBlogStats();
    
        }
    
        protected void getBlogStats() {
        ((TextView) findViewById(R.id.text)).setText("Please Wait!");
            new Thread() {
                public void run() {
    
                    Document document;
                    try {
                        document = Jsoup.connect(BLOG_URL).get();
                        Elements nodeBlogStats = document
                                .select("div#blog-stats ul li");
    
                        if (nodeBlogStats.size() > 0) {
                            result = nodeBlogStats.get(0).text();
                        }
                    } catch (IOException e) {
                        result = "Error";
                        e.printStackTrace();
                    }
    
                    runOnUiThread(new Runnable() {
    
                        public void run() {
                            ((TextView) findViewById(R.id.text)).setText(result);
                        }
                    });
    
                }
            }.start();
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

friends, i am trying to upload file to php server using following tutorial http://getablogger.blogspot.com/2008/01/android-how-to-post-file-to-php-server.html
I was following this tutorial of Sencha Touch: http://www.vimeo.com/15672696 Perfect tutorial, worked flawless. But
Follow up to this question for Facebook Friends.getAppUsers using Graph API that pulls friends
Friends, I like to know using which version of Android SDK we can develop
friends, i have created custom title bar using following titlebar.xml file with code <?xml
hello friends i am using this galleria gallery link to display images on my
Im using this Docu and Script to send an app request to some friends.
i am using this example to send messages to my friends. the problem i
friends, i am using following tutorial to lazy load list view now problem is
I'm using this code to get list of friends. $params = array( 'method' =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.