Added the JAVA_JNI_LOADLIBRARY macro for the jniclasscode pragma included in _upm.i for all java SWIG interface files.

This commit is contained in:
Serban Waltter
2018-01-17 14:11:35 +02:00
committed by Noel Eck
parent 6725559669
commit 2551596309
220 changed files with 228 additions and 2193 deletions

View File

@ -28,13 +28,4 @@
%include "mma7455.hpp"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mma7455");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}
JAVA_JNI_LOADLIBRARY(javaupm_mma7455)