diff options
Diffstat (limited to 'Tests/JavaNativeHeaders/D.java')
-rw-r--r-- | Tests/JavaNativeHeaders/D.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/JavaNativeHeaders/D.java b/Tests/JavaNativeHeaders/D.java new file mode 100644 index 000000000..449c0df2d --- /dev/null +++ b/Tests/JavaNativeHeaders/D.java @@ -0,0 +1,19 @@ +class D +{ + public D() + { + } + + 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); + } + } +} |