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=%{ %pragma(java) jniclasscode=%{
static { static { System.loadLibrary(\"${output_library_name}\"); }
try {
System.loadLibrary(\"${output_library_name}\");
} catch (UnsatisfiedLinkError e) {
System.err.println(\"Native code library failed to load. \\n\" + e);
System.exit(1);
}
}
%} %}
%include \"swig_api.h\" %include \"swig_api.h\"