title: Error loading native c library Use For PDF View in Android
body: <p>Hello i am trying to run the sample app from link bellow </p>
  
  <p><a href="https://github.com/pangyre/apv" rel="nofollow">https://github.com/pangyre/apv</a> </p>
  
  <p>it uses c libraries to read pdf file</p>
  
  <p>but i am facing the following error</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: Library pdfview2 not found
  </code></pre>
  
  <p>please tell me if there is any other settings in eclipse to use native libraries</p>
  
  <p>thanks in advance</p>
  
  <p>the detail log is as follows.</p>
  
  <pre><code>11-10 20:47:45.523: ERROR/AndroidRuntime(406): FATAL EXCEPTION: main
  11-10 20:47:45.523: ERROR/AndroidRuntime(406): java.lang.ExceptionInInitializerError
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at cx.hell.android.pdfview.OpenFileActivity.getPDF(OpenFileActivity.java:354)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at cx.hell.android.pdfview.OpenFileActivity.startPDF(OpenFileActivity.java:327)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at cx.hell.android.pdfview.OpenFileActivity.onCreate(OpenFileActivity.java:152)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at android.os.Handler.dispatchMessage(Handler.java:99)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at android.os.Looper.loop(Looper.java:123)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at android.app.ActivityThread.main(ActivityThread.java:4627)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at java.lang.reflect.Method.invokeNative(Native Method)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at java.lang.reflect.Method.invoke(Method.java:521)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at dalvik.system.NativeStart.main(Native Method)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406): Caused by: java.lang.UnsatisfiedLinkError: Library pdfview2 not found
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at java.lang.Runtime.loadLibrary(Runtime.java:461)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at java.lang.System.loadLibrary(System.java:557)
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     at cx.hell.android.pdfview.PDF.&lt;clinit&gt;(PDF.java:15)
  
  11-10 20:47:45.523: ERROR/AndroidRuntime(406):     ... 16 more
  </code></pre>