Skip to content

Commit

Permalink
Added try to native library loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Phaestion committed Oct 24, 2017
1 parent 988f5cb commit 6b74ac7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/main/java/com/shockwave/pdfium/PdfiumCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ public class PdfiumCore {
private static final String TAG = PdfiumCore.class.getName();

static {

System.loadLibrary("modpng");
System.loadLibrary("modft2");
System.loadLibrary("modpdfium");
System.loadLibrary("jniPdfium");
try {
System.loadLibrary("modpng");
System.loadLibrary("modft2");
System.loadLibrary("modpdfium");
System.loadLibrary("jniPdfium");
} catch (UnsatisfiedLinkError e) {
Log.e(TAG, "Native libraries failed to load." + e);
}
}

private native long nativeOpenDocument(int fd, String password);
Expand Down

0 comments on commit 6b74ac7

Please sign in to comment.