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

@ -5,13 +5,4 @@
%include "common.i"
/* Add the JAVA code to load the module */
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_sensortemplate");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}
JAVA_JNI_LOADLIBRARY(javaupm_sensortemplate)