aboutsummaryrefslogtreecommitdiff
path: root/src/guvas12d/javaupm_guvas12d.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/guvas12d/javaupm_guvas12d.i')
-rw-r--r--src/guvas12d/javaupm_guvas12d.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/guvas12d/javaupm_guvas12d.i b/src/guvas12d/javaupm_guvas12d.i
index 7dec36b..1b7af28 100644
--- a/src/guvas12d/javaupm_guvas12d.i
+++ b/src/guvas12d/javaupm_guvas12d.i
@@ -6,3 +6,14 @@
%}
%include "guvas12d.h"
+
+%pragma(java) jniclasscode=%{
+ static {
+ try {
+ System.loadLibrary("javaupm_guvas12d");
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("Native code library failed to load. \n" + e);
+ System.exit(1);
+ }
+ }
+%} \ No newline at end of file