Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
e99d47cc
Commit
e99d47cc
authored
Aug 10, 2017
by
Davis King
Browse files
Removed exit call on load library failure.
parent
44a62b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
dlib/java/cmake_swig_jni
dlib/java/cmake_swig_jni
+1
-8
No files found.
dlib/java/cmake_swig_jni
View file @
e99d47cc
...
@@ -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\"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment