Commit e99d47cc authored by Davis King's avatar Davis King

Removed exit call on load library failure.

parent 44a62b19
...@@ -163,14 +163,7 @@ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/swig.i ...@@ -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\"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment