diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2018-01-19 13:26:46 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@sap.com> | 2018-01-22 16:15:59 (GMT) |
commit | 4829ea239aa2b45170ce841e14d8e1ec076240ee (patch) | |
tree | 6cd8b76ef9b8d632199fdededdd9df2cea372c58 /Tests/JavaNativeHeaders/E.java | |
parent | be2f0509037880a94f487867bee088a231054f4b (diff) | |
download | CMake-4829ea239aa2b45170ce841e14d8e1ec076240ee.zip CMake-4829ea239aa2b45170ce841e14d8e1ec076240ee.tar.gz CMake-4829ea239aa2b45170ce841e14d8e1ec076240ee.tar.bz2 |
add_jar: add option GENERATE_NATIVE_HEADERS
Diffstat (limited to 'Tests/JavaNativeHeaders/E.java')
-rw-r--r-- | Tests/JavaNativeHeaders/E.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/JavaNativeHeaders/E.java b/Tests/JavaNativeHeaders/E.java new file mode 100644 index 0000000..30fd95a --- /dev/null +++ b/Tests/JavaNativeHeaders/E.java @@ -0,0 +1,19 @@ +class E +{ + public E() + { + } + + public native void printName(); + + static { + try { + + System.loadLibrary("D"); + + } catch (UnsatisfiedLinkError e) { + System.err.println("Native code library failed to load.\n" + e); + System.exit(1); + } + } +} |