mirror of https://github.com/davisking/dlib.git
Removed exit call on load library failure.
This commit is contained in:
parent
44a62b19d0
commit
e99d47cc7c
|
@ -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\"
|
||||
|
|
Loading…
Reference in New Issue