title: Android and Eclipse - java.lang.NoClassDefFoundError with project dependency
body: <p>I'm trying to build a abstract classes in one project as a template and to implement them in another.
  However when trying to run an Activity that implements the template Activity, the NoClassDefFoundError pops up.
  I've added the template project to the Java Build Path of the other one, checked it in "Order and Export", cleaned the project, but nothing helps. I also tried to compile the project with the 1.6 compiler. All resulted with the same error.
  When trying to add the template project as a JAR Eclipse says there's a duplicate of Manifest files and won't allow it.</p>
  
  <p>Does anyone has any idea what else I can do to fix this problem?</p>
  
  <p>Here's the error log I receive:</p>
  
  <pre><code>04-05 00:29:09.941: E/AndroidRuntime(1348): FATAL EXCEPTION: main
  04-05 00:29:09.941: E/AndroidRuntime(1348): java.lang.IllegalStateException: Could not execute method of the activity
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at android.view.View$1.onClick(View.java:2144)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at android.view.View.performClick(View.java:2485)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at android.view.View$PerformClick.run(View.java:9080)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at android.os.Handler.handleCallback(Handler.java:587)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at android.os.Handler.dispatchMessage(Handler.java:92)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at android.os.Looper.loop(Looper.java:123)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at android.app.ActivityThread.main(ActivityThread.java:3683)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at java.lang.reflect.Method.invokeNative(Native Method)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at java.lang.reflect.Method.invoke(Method.java:507)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at dalvik.system.NativeStart.main(Native Method)
  04-05 00:29:09.941: E/AndroidRuntime(1348): Caused by: java.lang.reflect.InvocationTargetException
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at java.lang.reflect.Method.invokeNative(Native Method)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at java.lang.reflect.Method.invoke(Method.java:507)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at android.view.View$1.onClick(View.java:2139)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     ... 11 more
  04-05 00:29:09.941: E/AndroidRuntime(1348): Caused by: java.lang.NoClassDefFoundError:  scf1984.games.testQuest.TestQuestActivity
  04-05 00:29:09.941: E/AndroidRuntime(1348):     at scf1984.games.testQuest.TestMainActivity.startTestQuest(TestMainActivity.java:18)
  04-05 00:29:09.941: E/AndroidRuntime(1348):     ... 14 more
  </code></pre>
  
  <p>And the manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="scf1984.games.testQuest"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="17" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name="scf1984.games.testQuest.TestMainActivity"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="scf1984.games.testQuest.TestQuestActivity"
          android:label="@string/app_name" &gt;
  
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>The invoking method:</p>
  
  <pre><code>    public void startTestQuest(View v) {
      Intent i = new Intent(this,
              scf1984.games.testQuest.TestQuestActivity.class);
      startActivity(i);
  }
  </code></pre>