title: Zxing Library java.lang.ExceptionInInitializerError
body: <p>I am using ZXing library I have imported 'android' project from ZXing folder downloaded from code.google.com  and make it library , also core.jar file is addded to the library.
  while I run the app it forces to close,   </p>
  
  <p><strong>LogCat</strong></p>
  
  <pre><code>10-26 15:16:58.495: E/AndroidRuntime(21673): FATAL EXCEPTION: main
  10-26 15:16:58.495: E/AndroidRuntime(21673): java.lang.ExceptionInInitializerError
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at java.lang.Class.newInstanceImpl(Native Method)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at java.lang.Class.newInstance(Class.java:1429)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2583)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at android.app.ActivityThread.access$2300(ActivityThread.java:126)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at android.os.Handler.dispatchMessage(Handler.java:99)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at android.os.Looper.loop(Looper.java:123)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at android.app.ActivityThread.main(ActivityThread.java:4633)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at java.lang.reflect.Method.invokeNative(Native Method)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at java.lang.reflect.Method.invoke(Method.java:521)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at dalvik.system.NativeStart.main(Native Method)
  10-26 15:16:58.495: E/AndroidRuntime(21673): Caused by: java.lang.NoClassDefFoundError: com.google.zxing.ResultMetadataType
  10-26 15:16:58.495: E/AndroidRuntime(21673):    at com.google.zxing.client.android.CaptureActivity.&lt;clinit&gt;(CaptureActivity.java:97)
  </code></pre>
  
  <p>menifest.xml file Content is </p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
       &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="in.blogspot.khurram2java"
        android:versionCode="1"
        android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="16" /&gt;
  
      &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.FLASHLIGHT" /&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="in.blogspot.khurram2java.MainActivity"
              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="com.google.zxing.client.android.CaptureActivity"
              android:configChanges="orientation|keyboardHidden"
              android:screenOrientation="landscape"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
              android:windowSoftInputMode="stateAlwaysHidden" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.zxing.client.android.SCAN" /&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
      &lt;/manifest&gt;
  
  
  
  MainActivity.java
  
  
  Intent intent = new Intent(MainActivity.this,CaptureActivity.class);
  intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
  startActivityForResult(intent, 0);
  </code></pre>