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 1057151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:49:21+00:00 2026-05-16T17:49:21+00:00

This is a two-part question about adding a third-party library (JAR) to an Android

  • 0

This is a two-part question about adding a third-party library (JAR) to an Android project in Eclipse.

The first part of the question is, when I try to add a third-party JAR (library) to my Android project I first get the problem of

Error parsing XML: unbound prefix

because I’m trying to use a class from that JAR (and need the prefix somehow defined). What’s going on?

Second, (after fixing that–the answer is given below), my application doesn’t work on Android and I discover via the debugger (LogCat) that the class I’m attempting to consume doesn’t exist.

Caused by:
java.lang.ClassNotFoundException:
com.github.droidfu.widgets.WebImageView…

Why, when I get no compilation or linker error in Eclipse, does it have this problem on the emulator?

These two questions are rhetorical for I’m going to answer them myself below. Other posts in this forum creep up to the problem and elsewhere there is discussion, but I feel that I can be more explicitly helpful for the next guy to come along.

  • 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-05-16T17:49:22+00:00Added an answer on May 16, 2026 at 5:49 pm

    Now for the missing class problem.

    I’m an Eclipse Java EE developer and have been in the habit for many years of adding third-party libraries via the “User Library” mechanism in Build Path. Of course, there are at least 3 ways to add a third-party library, the one I use is the most elegant, in my humble opinion.

    This will not work, however, for Android, whose Dalvik “JVM” cannot handle an ordinary Java-compiled class, but must have it converted to a special format. This does not happen when you add a library in the way I’m wont to do it.

    Instead, follow the (widely available) instructions for importing the third-party library, then adding it using Build Path (which makes it known to Eclipse for compilation purposes). Here is the step-by-step:

    1. Download the library to your host
      development system.
    2. Create a new folder, libs, in
      your Eclipse/Android project.
    3. Right-click libs and choose
      Import -> General -> File System,
      then Next, Browse in the filesystem
      to find the library’s parent
      directory (i.e.: where you
      downloaded it to).
    4. Click OK, then click the
      directory name (not the checkbox) in
      the left pane, then check the
      relevant JAR in the right pane. This
      puts the library into your project
      (physically).
    5. Right-click on your project,
      choose Build Path -> Configure Build
      Path, then click the Libraries tab,
      then Add JARs…, navigate to your
      new JAR in the libs directory and
      add it. (This, incidentally, is the moment at which your new JAR is converted for use on Android.)

    NOTE

    Step 5 may not be needed, if the lib is already included in your build path. Just ensure that its existence first before adding it.

    What you’ve done here accomplishes two things:

    1. Includes a Dalvik-converted JAR
      in your Android project.
    2. Makes Java definitions available
      to Eclipse in order to find the
      third-party classes when developing (that is, compiling)
      your project’s source code.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 533k
  • Answers 533k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here's a minimum working version (with C++ keywords for lots… May 17, 2026 at 12:25 am
  • Editorial Team
    Editorial Team added an answer No. This is not a memory leak. exec*() will make… May 17, 2026 at 12:25 am
  • Editorial Team
    Editorial Team added an answer Try using kCTForegroundColorAttributeName instead. May 17, 2026 at 12:25 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

This is sort of a two part question. I'm building a flash image viewer
This is part of a series of at least two closely related, but distinct
I need some advice how to go about this: 1) I retrieve an XML
For a new project I'm trying to create my business classes first and create
OK i have seen other posts about this but none really specifically answer my
Edit: There is a somewhat strange solution to this question. Check my answer posted
I have a question with fluent interfaces. We have some objects that are used
I'm concerned about the possibility of my users' sessions getting swept away. I am
I asked another question: https://stackoverflow.com/questions/1180240/best-way-to-sort-1m-records-in-python where I was trying to determine the best approach
I have been reading about bit operators in Objective-C in Kochan's book, Programming in

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.