Removed exit call on load library failure.

This commit is contained in:
Davis King 2017-08-10 15:31:02 -04:00
parent 44a62b19d0
commit e99d47cc7c
1 changed files with 1 additions and 8 deletions

View File

@ -163,14 +163,7 @@ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/swig.i
}
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary(\"${output_library_name}\");
} catch (UnsatisfiedLinkError e) {
System.err.println(\"Native code library failed to load. \\n\" + e);
System.exit(1);
}
}
static { System.loadLibrary(\"${output_library_name}\"); }
%}
%include \"swig_api.h\"