Couldn't load PDFNetC from loader dalvik.system.PathClassLoader

Skip to first unread message

Pavel Shchahelski

May 21, 2014, 10:26:11 AM5/21/14

I use PDFNet library in the application. We even bought the license to have different features that are available with paid license. However we faced a problem that can't fix. Maybe someone got the same and know the solution. So my problem is - when I do

PDFNet.initialize(this, R.raw.pdfnet);

in the code it throws the exception

Caused by: java.lang.UnsatisfiedLinkError: Couldn't load PDFNetC from loader dalvik.system.PathClassLoader[dexPath=/data/app/,libraryPath=/data/app-lib/]: findLibrary returned null
at java.lang.Runtime.loadLibrary(
at java.lang.System.loadLibrary(

I googled it and the answer was to include all the files in the apk, which I did. But it did not help me at all. What can be the cause to this problem?

Thanks in advance.

Shirley Gong

May 21, 2014, 2:20:30 PM5/21/14
Hi Pavel,

From your description, it seems like the problem is the app couldn't find the correct .so library for your device.
We recommend checking the following:

1. Were the .so libraries placed in their respective folder? (i.e. armeabi/, armeabi-v7a/, and x86/
2. Is this happening in a specific device? Can you reproduce the issue on emulator or other devices?
3. Can you reproduce this in the sample app?

For more information on how to setup the project, please take a look at our getting started blog post:
If you still have the same problem, please contact us at with detailed information on your development environment / device / application.

Best Regards,
Shirley Gong

Pavel Shchahelski

May 22, 2014, 6:38:51 AM5/22/14
Hi Shirley,

First of all, thanks for the reply.

.so files are placed under libs in their respective folders:


It is happening on devices which I have. There are htc one x, samsung galaxy tab 2.

Will try the sample app and write you the results.

Pavel Shchahelski

May 23, 2014, 3:35:11 PM5/23/14

I looked again at the code and it was my mistake. I found out that .so files were not included as libraries in the project. Sorry for taking your time. Now everything works like a charm. Thanks for the response.
Reply all
Reply to author
0 new messages