diff options
Diffstat (limited to 'src/lcd/javaupm_i2clcd.i')
-rw-r--r-- | src/lcd/javaupm_i2clcd.i | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lcd/javaupm_i2clcd.i b/src/lcd/javaupm_i2clcd.i index 2daa0c9..4705025 100644 --- a/src/lcd/javaupm_i2clcd.i +++ b/src/lcd/javaupm_i2clcd.i @@ -43,3 +43,14 @@ %include "lcm1602.h" %include "jhd1313m1.h" %include "sainsmartks.h" + +%pragma(java) jniclasscode=%{ + static { + try { + System.loadLibrary("javaupm_i2clcd"); + } catch (UnsatisfiedLinkError e) { + System.err.println("Native code library failed to load. \n" + e); + System.exit(1); + } + } +%}
\ No newline at end of file |