Add Java bindings (#18)

This commit is contained in:
Robert Edwards
2019-12-06 09:25:26 +01:00
committed by Malte Langkabel
parent 2ffb5b2af0
commit 28e8cb8f33
12 changed files with 403 additions and 5 deletions
+12 -1
View File
@@ -9,4 +9,15 @@
%}
//double-check that this is indeed %include !!!
%include "sourcetraildb.h"
%include "sourcetraildb.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("_sourcetraildb");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}