summaryrefslogtreecommitdiffstats
path: root/Tests/JavaJavah/B.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/JavaJavah/B.java')
-rw-r--r--Tests/JavaJavah/B.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/JavaJavah/B.java b/Tests/JavaJavah/B.java
new file mode 100644
index 0000000..d731f39
--- /dev/null
+++ b/Tests/JavaJavah/B.java
@@ -0,0 +1,19 @@
+class B
+{
+ public B()
+ {
+ }
+
+ public native void printName();
+
+ static {
+ try {
+
+ System.loadLibrary("B");
+
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("Native code library failed to load.\n" + e);
+ System.exit(1);
+ }
+ }
+}