Getting NoClassDefFoundError for a class present in the project
<pre><code>decodeThread = new DecodeThread(activity, decodeFormats, characterSet,
    new ViewfinderResultPointCallback(activity.getViewfinderView()));
</code></pre>

<p>For the above code I am getting below exception:</p>

<pre><code>01-24 01:33:02.078: E/AndroidRuntime(708): java.lang.NoClassDefFoundError: com.main.onlinecart.ViewfinderResultPointCallback
</code></pre>

<p>The class <code>ViewfinderResultPointCallback</code> is present in the same package of the calling class. I am not getting the error for other classes that are being used from the same package. What can be a possible problem here? Anything related to classpath? Where can i crosscheck the class path variable?</p>

<p>I am using eclipse (on mac os x) and running the project from Run configuration.</p>

<p>The class <code>ViewfinderResultPointCallback</code> implements another class <code>ResultPointCallback</code> which is not in the same package but it is present in a jar added in the build path of the project. And i see one exception in the log: </p>

<pre><code>01-24 01:33:01.968: I/dalvikvm(708): Failed resolving com/main/onlinecart/ViewfinderResultPointCallback; interface 472 'Lcom/google/zxing/ResultPointCallback;' 
01-24 01:33:01.968: W/dalvikvm(708): Link of class 'Lcom/main/onlinecart/ViewfinderResultPointCallback;' failed
</code></pre>

<p>but there are many other classes from the same jar which are not throwing any error.</p>
